Skip to content

Installing RGtk2 on Mac OS

2 messages · Hana Sevcikova, Brian Ripley

#
I'm having trouble to install RGtk2 (from source) on Mac OS 10.4.11 (R 
2.9.0). The GTK libraries (2.12.11) were installed into /sw/lib via 
fink. Even if I set the GTK_LIBS to that path, the installation program 
doesn't seem to find it (see below). libglade is there too but not found.

If I install the package from binaries, it fails on load.

Would anybody know how to make it work?

Thanks a lot,

Hana

$ echo $GTK_LIBS
/sw/lib

$ R CMD INSTALL RGtk2
* Installing to library '/Library/Frameworks/R.framework/Resources/library'
* Installing *source* package 'RGtk2' ...
checking for pkg-config... /sw/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBGLADE... no
configure: WARNING: libglade not found
rm: R/libglade*: No such file or directory
rm: src/libglade*: No such file or directory
checking for INTROSPECTION... no
checking for GTK... no
configure: error: GTK version 2.8.0 required
ERROR: configuration failed for package 'RGtk2'
* Removing '/Library/Frameworks/R.framework/Resources/library/RGtk2'
#
Please use R-sig-mac for Mac OS X questions, as the posting guide asks.

But there is a binary of Gtk2 on r.research.att.com that matches the 
binary RGtk2 package on CRAN, and that worked for me earlier today. 
Mixing fink (or darwinports) with the binary R distribution is warned 
against in the R Mac OS X documentation.
On Fri, 8 May 2009, Hana Sevcikova wrote: