Dear all, 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. I have the latest R version (2.10.1). When I try to load gWidgetsRGtk2 (or RGtk2), it asks me: "Instal GTK+?"
I installed RGtk2 (version 2.14.3 from http://r.research.att.com/gtk2-runtime.dmg ), 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+?" And of course all packages dependent from RGtk2 are not loading. I also tried to install GTK 2.18.5-X11.pkg (from http://r.research.att.com/libs/GTK_2.18.5-X11.pkg ) - but in this case when I try to load RGtk2 - R hangs. Below I included the error message I get when RGtk version 2.14.3 is installed. __________________________________________________________________________________ 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-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac