[R-SIG-Mac] Loading rgl fails on 2.7.0

Simon Urbanek simon.urbanek at r-project.org
Tue Feb 12 16:46:31 CET 2008


Michael,

are you sure you have put /usr/X11/bin on your PATH? That is probably  
the most common mistake. The safest bet to see what went wrong is to  
look at the configure output.

Cheers,
Simon

On Feb 12, 2008, at 10:20 AM, Michael Kubovy wrote:

> Hi Simon,
>
> Thanks. So in Terminal:
>
> MK-MacPro:lib mk$ cd /usr/X11/lib
> MK-MacPro:lib mk$ sudo bash
> Password:
> bash-3.2# mv libGL.dylib libGL.dylib.apple
> bash-3.2# ln -s /System/Library/Frameworks/OpenGL.framework/ 
> Libraries/libGL.dylib .
>
> Then in R:
> > install.packages('rgl', type = 'source', lib = '/Library/ 
> Frameworks/R.framework/Versions/2.7/Resources/library')
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/ 
> rgl_0.76.tar.gz'
> Content type 'application/x-gzip' length 803143 bytes (784 Kb)
>
> <snip>
>
> The downloaded packages are in
> 	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/ 
> RtmpuLU92a/downloaded_packages
> Warning message:
> In install.packages("rgl", type = "source", lib = "/Library/ 
> Frameworks/R.framework/Versions/2.7/Resources/library") :
>  installation of package 'rgl' had non-zero exit status
> no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/ 
> library/rgl'
>
> On Feb 12, 2008, at 8:28 AM, Simon Urbanek wrote:
>
>> Michael,
>>
>> please read R for Mac OS X FAQ (even more so if you are using R- 
>> devel) - apparently you are using Leopard, so you have to fix X11  
>> first - see also
>> http://r.research.att.com/building.html
>> (which is mentioned in the FAQ)
>>
>> On Feb 12, 2008, at 6:37 AM, Michael Kubovy wrote:
>>
>>> Thanks. I downloaded and installed gfortran and tcltk from http://cran.r-project.org/bin/macosx/tools/
>>>
>>> Then:
>>>> install.packages('rgl', type = 'source', lib = '/Library/ 
>>>> Frameworks/
>>> R.framework/Versions/2.7/Resources/library')
>>> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.76.tar.gz'
>>> Content type 'application/x-gzip' length 803143 bytes (784 Kb)
>>> opened URL
>>> ==================================================
>>> downloaded 784 Kb
>>>
>>> * Installing *source* package 'rgl' ...
>>> checking for gcc... gcc -arch i386 -isysroot /Developer/SDKs/
>>> MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99
>>>
>>> <snip>
>>>
>>> checking for X...
>>> The downloaded packages are in
>>> 	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/ 
>>> Rtmp9t3Nlf/
>>> downloaded_packages
>>> Warning message:
>>> In install.packages("rgl", type = "source", lib = "/Library/ 
>>> Frameworks/
>>> R.framework/Versions/2.7/Resources/library") :
>>> installation of package 'rgl' had non-zero exit status
>>> no
>>> configure: error: X11 not found but required, configure aborted.
>>> ERROR: configuration failed for package 'rgl'
>>> ** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/
>>> library/rgl'
>>>
>>> So it's still failing to see X11.
>>>
>
> _____________________________
> Professor Michael Kubovy
> University of Virginia
> Department of Psychology
> USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
> Parcels:    Room 102        Gilmer Hall
>        McCormick Road    Charlottesville, VA 22903
> Office:    B011    +1-434-982-4729
> Lab:        B019    +1-434-982-4751
> Fax:        +1-434-982-4766
> WWW:    http://www.people.virginia.edu/~mk9y/
>
>
>



More information about the R-SIG-Mac mailing list