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

Michael Kubovy kubovy at virginia.edu
Tue Feb 12 12:37:12 CET 2008


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.

On Feb 12, 2008, at 6:24 AM, Prof Brian Ripley wrote:

> You need the development libraries, not just the run-time components.
>
> On Tue, 12 Feb 2008, Michael Kubovy wrote:
>
>> Thanks. I had already tried to install with menu Package &  
>> Data:Package Installer from CRAN (Sources). That crashed R.
>> Now on your advice, I ran
>>> 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 sys/types.h... rm: conftest.dSYM: is a directory
>> rm: conftest.dSYM: is a directory
>> yes
>>
>> <snip>
>>
>> The downloaded packages are in
>> 	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/ 
>> RtmpkjuNX6/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
>> yes
>> checking png.h usability... no
>> checking png.h presence... no
>> checking for png.h... no
>> checking for png_read_update_info in -lpng... no
>> configure: libpng header and lib found
>> configure: using libpng dynamic linkage
>> checking for X... 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 not seeing X11, even though I had it running.

_____________________________
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