Skip to content

rggobi: Installation problems on OS X Snow Leopard

3 messages · Elizabeth Nichols, Simon Urbanek

#
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:

            
#
Actually, I have finally managed to get GTK+ to work even in 64-bit  
(at least most of it) and I have also compiled the corresponding  
rggobi binary. However, this requires an updated GTK+ framework as  
well as a new ggobi version. It will only work on Mac OS X 10.5 or  
10.6 (hence the Leopard build only). To install:

a) install new GTK+ and ggobi:

cd /tmp
curl -O http://r.research.att.com/libs/GTK+_2.18.5-X11-darwin9-bin3.tar.gz
curl -O http://r.research.att.com/libs/ggobi-2.1.8-darwin9-bin3.tar.gz
sudo tar fxz GTK+_2.18.5-X11-darwin9-bin3.tar.gz -C /
sudo tar fxz ggobi-2.1.8-darwin9-bin3.tar.gz -C /

b) in R install the packages form the Mac binary master server:

install.packages(c("RGtk2", "rggobi"),,"http://r.urbanek.info/")

(They will propagate to CRAN mirrors within a day or so).

Eventually I'll turn the GTK+ tar ball into an installer package so if  
the above scares you stay tuned.

Cheers,
Simon
On Jan 8, 2010, at 11:19 , Simon Urbanek wrote: