Skip to content
Prev 6730 / 15075 Next

rggobi: Installation problems on OS X Snow Leopard

Elisabeth,

rggobi is currently not available from CRAN because RGtk2 (which is  
required by rggobi) does not work with 64-bit R.

You can try to compile your own rggobi in 32-bit (at your own risk) as  
follows:

a) install Xcode from the Snow Leopard DVD (if you didn't already)

b) download and install GTK+ and ggobi -- e.g. by typing this in the  
Terminal:

cd /tmp
curl -O http://r.research.att.com/libs/GTK+_2.14.3-X11-darwin8-bin2.tar.gz
curl -O http://r.research.att.com/libs/ggobi-2.1.8-darwin8-bin2.tar.gz
# after the next line it will ask you for your password
sudo tar fxz GTK+_2.14.3-X11-darwin8-bin2.tar.gz -C /
sudo tar fxz ggobi-2.1.8-darwin8-bin2.tar.gz -C /
rm -f GTK+_2.14.3-X11-darwin8-bin2.tar.gz
rm -f ggobi-2.1.8-darwin8-bin2.tar.gz

c) install RGtk2 and rggobi form sources -- again in Terminal:

export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:/usr/ 
local/ggobi/bin:$PATH
export PKG_CONFIG_PATH=/Library/Frameworks/GTK+.framework/Resources/ 
lib/pkgconfig:/usr/local/ggobi/lib/pkgconfig

cd /tmp
curl -O http://cran.at.r-project.org/src/contrib/RGtk2_2.12.15.tar.gz
curl -O http://cran.at.r-project.org/src/contrib/rggobi_2.1.14.tar.gz

# this will take forever so be patient ...
R --arch=i386 CMD INSTALL RGtk2_2.12.15.tar.gz
R --arch=i386 CMD INSTALL rggobi_2.1.14.tar.gz

# that's it -- note that you'll need X11 of course

Cheers,
Simon
On Jan 8, 2010, at 10:47 , Elizabeth Nichols wrote: