Have you tried install GTK2 manually first? It can be downloaded from http://r.research.att.com/gtk2-runtime.dmg
HTH Ronggui On 19 February 2010 10:02, Anna Oganyan <aogan...@georgiasouthern.edu>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. > -- Wincent Ronggui HUANG Doctoral Candidate Dept of Public and Social Administration City University of Hong Kong http://asrr.r-forge.r-project.org/rghuang.html [[alternative HTML version deleted]] ______________________________________________ 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.