[R-SIG-Mac] New GTK+ [Was: rggobi: Installation problems on OS X Snow Leopard]

Simon Urbanek simon.urbanek at r-project.org
Fri Jan 8 18:10:20 CET 2010


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:

> 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:
>
>> Hello:
>> I have successfully installed both R and R64  for Apple OS X from
>> CRAN  plus GTK+2.14 and GGobi 2.1.8 from:
>> http://www.ggobi.org/downloads
>>
>> I launch either R or R64 and try to install the rrgobi package and  
>> get
>> (with R64) the following:
>>
>> R version 2.10.1 (2009-12-14)
>> Copyright (C) 2009 The R Foundation for Statistical Computing
>> ISBN 3-900051-07-0
>>
>> R is free software and comes with ABSOLUTELY NO WARRANTY.
>> You are welcome to redistribute it under certain conditions.
>> Type 'license()' or 'licence()' for distribution details.
>>
>> Natural language support but running in an English locale
>>
>> R is a collaborative project with many contributors.
>> Type 'contributors()' for more information and
>> 'citation()' on how to cite R or R packages in publications.
>>
>> Type 'demo()' for some demos, 'help()' for on-line help, or
>> 'help.start()' for an HTML browser interface to help.
>> Type 'q()' to quit R.
>>
>> [R.app GUI 1.31 (5537) x86_64-apple-darwin9.8.0]
>>
>>> install.packages("rggobi")
>> --- Please select a CRAN mirror for use in this session ---
>> Warning message:
>> In getDependencies(pkgs, dependencies, available, lib) :
>> package ‘rggobi’ is not available
>>>
>>
>> I get substantially the same thing with R.
>>
>> Here is some info about my OS:
>> System Version:       Mac OS X 10.6.2 (10C540)
>> Kernel Version:       Darwin 10.2.0
>> Boot Mode:    Normal
>> Secure Virtual Memory:        Not Enabled
>> 64-bit Kernel and Extensions: No
>>
>> What am I doing wrong?  Any help would be MOST appreciated.
>> Thanks
>> Betsy
>>
>>
>> -- 
>> Elizabeth A. Nichols, Ph.D.
>> CTO for Metrics | PlexLogic, LLC
>> Great Falls | VA 22066
>> 703.963.7202
>>
>> 	[[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list