I take back what I said about not being able to use RGtk2 with the 64-
bit mac. I (just today, for the first time ) can now get RGtk2 to load
and then to get rgl to run properly. I had been able to run rgl in the
32 bit system but that was not satisfactory. I had earlier installed
the 2.18 version of Gtk2+ from the att.research.com site. It's
possible that you got there from the CRAN website since they do have a
link that displays inside a CRAN frame.
So it looks like you need to get this file:
http://r.research.att.com/libs/GTK_2.18.5-X11.pkg
It's possible that I failed to restart my system and that was needed.
I don't know.
And then install RGtk2 and gWidgetsRGtk2 and any dependencies and
then load RGtk.
Best;
David.
On Feb 18, 2010, at 9:02 PM, Anna Oganyan wrote:
Dear List,
I would like to ask about package RGtk2 with which I have a problem.
I will very much appreciate if somebody could tell me what I need to
do.
I need to install a package scdMicro and it depends on gWidgetsRGtk2.
I am working on MAC, version 10.5.8.
When I try to load gWidgetsRGtk2 (or RGtk2), it asks me:
"Instal GTK+?"
I installed Gtk+ from CRAN, and added a path:
export PATH=$PATH:/Library/Frameworks/GTK+.framework/Resources/bin
But next time I try to load gWidgetsRGtk2 (or RGtk2), I get the same
message: "Instal GTK+?"
Below I included the error message I got.
__________________________________________________________________________________
Loading required package: gWidgetsRGtk2
Loading required package: gWidgets
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/Users/aoganyan/Library/R/2.10/
library/RGtk2/libs/i386/RGtk2.so':
dlopen(/Users/aoganyan/Library/R/2.10/library/RGtk2/libs/i386/
RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/
Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Users/aoganyan/Library/R/2.10/library/RGtk2/libs/
i386/RGtk2.so
Reason: Incompatible library version: RGtk2.so requires version
1801.0.0 or later, but libgtk-x11-2.0.0.dylib provides version
1401.0.0
In addition: Warning message:
In fun(...) : couldn't connect to display "/tmp/launch-WrMGBi/:0"
Failed to load RGtk2 dynamic library, attempting to install it.
Error in if (choice == 1) { : argument is of length zero
Error : .onLoad failed in 'loadNamespace' for 'RGtk2'
Error: package 'gWidgetsRGtk2' could not be loaded
starting httpd help server ... done
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/Users/aoganyan/Library/R/2.10/
library/RGtk2/libs/i386/RGtk2.so':
dlopen(/Users/aoganyan/Library/R/2.10/library/RGtk2/libs/i386/
RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/
Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Users/aoganyan/Library/R/2.10/library/RGtk2/libs/
i386/RGtk2.so
Reason: Incompatible library version: RGtk2.so requires version
1801.0.0 or later, but libgtk-x11-2.0.0.dylib provides version
1401.0.0
Failed to load RGtk2 dynamic library, attempting to install it.
Error in if (choice == 1) { : argument is of length zero
Error : .onLoad failed in 'loadNamespace' for 'RGtk2'
Error: package/namespace load failed for 'gWidgetsRGtk2'
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"),
class = "tclObj") :
[tcl] invalid command name "option".
Error : .onLoad failed in 'loadNamespace' for 'gWidgetstcltk'
Error: package/namespace load failed for 'gWidgetstcltk'
Loading required package: proto
Loading required package: filehash
Error: package 'filehash' could not be loaded
In addition: Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE,
lib.loc = lib.loc) :
there is no package called 'filehash'
Loading required package: gWidgetsRGtk2
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/Users/aoganyan/Library/R/2.10/
library/RGtk2/libs/i386/RGtk2.so':
dlopen(/Users/aoganyan/Library/R/2.10/library/RGtk2/libs/i386/
RGtk2.so, 6): Library not loaded: /Library/Frameworks/GTK+.framework/
Resources/lib/libgtk-x11-2.0.0.dylib
Referenced from: /Users/aoganyan/Library/R/2.10/library/RGtk2/libs/
i386/RGtk2.so
Reason: Incompatible library version: RGtk2.so requires version
1801.0.0 or later, but libgtk-x11-2.0.0.dylib provides version
1401.0.0
Failed to load RGtk2 dynamic library, attempting to install it.
Error in if (choice == 1) { : argument is of length zero
Error : .onLoad failed in 'loadNamespace' for 'RGtk2'
Error: package 'gWidgetsRGtk2' could not be loaded
_______________________________________________________________
Thank you very much in advance. I will appreciate very much any
suggestions.
Anna Ogan
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.