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

Simon Urbanek simon.urbanek at r-project.org
Tue Feb 12 18:39:21 CET 2008


Michael,

On Feb 12, 2008, at 12:04 PM, Michael Kubovy wrote:

> Thanks Simon,
>
> Where can I find the the configure output?
>

It is printed as you run R CMD INSTALL. If you install from a  
directory instead of a tar ball, you also get the config.log file if  
the rgl directory (hence it is a good idea to install that way if you  
encounter any problems).


> As to whether I have put /usr/X11/bin on my PATH, I edited the two  
> files that --- according to my limited knowledge of Unix --- might  
> be relevant. The problem persists.
>

Those are (usually) quite irrelevant - you have to set PATH simply  
when you are installing the package - this is independent of the  
system setting.

The default shell on OS X so assuming you didn't change that, you  
simply run
export PATH=/usr/X11/bin:$PATH
tar fxz rgl_0.76.tar.gz
R CMD INSTALL rgl

Look at rgl/config.log for details.

Cheers,
Simon



> ****************
> cat .cshrc:
> ****************
>
> set path=($path /opt/local/bin /Applications/~LocalApps/sound/Cog)
> if (! $?DISPLAY && ! $?SSH_CONNECTION ) then
>  setenv DISPLAY `ps -ax | grep X11.app |  grep -v Xauthority  | grep  
> -v grep | awk '{print $7}' `.0
>    if ( $DISPLAY == '.0' )then
>       setenv DISPLAY :0.0
>    endif
>  echo "lias SetTitle 'settitle \[tcsh\]\ \ \ $HOST:r:r\:\:$cwd '
> alias cd 'cd \!*;SetTab;SetTitle'
> SetTitle;SetTab
>
> set prompt="tcsh-% "
>
> ISPLAY has been set to $DISPLAY"
> endif
>
> test -r /sw/bin/init.csh && source /sw/bin/init.csh
>
> set path=(/Library/Frameworks/Python.framework/Versions/Current/bin  
> $path)
>
> if ( -d /sw/bin ) then
> 	source /sw/bin/init.csh
> endif
>
> if (! $?DISPLAY && ! $?SSH_CONNECTION ) then
>  setenv DISPLAY `ps -wwx | grep -F X11.app | awk '{print $NF}' |  
> grep -e ":[0-9]"`.0
>    if ( $DISPLAY == '.0' )then
>       setenv DISPLAY :0.0
>    endif
>  echo "DISPLAY has been set to $DISPLAY"
> endif
>
> alias settitle 'echo -n "
>
> set path=(/Library/Frameworks/Python.framework/Versions/Current/bin  
> $path $PATH /usr/sbin /usr/local/bin /usr/X11/bin)
>
> ****************
> cat .bashrc:
> ****************
>
> if [[ -z $DISPLAY && -z $SSH_CONNECTION ]]; then
>    disp_no=($( ps -ax | grep X11.app | grep -v Xauthority | grep -v  
> grep | awk '{print $7}' ))
>    if [[ -n $disp_no ]];then
>        export DISPLAY=${disp_no}.0
>    else
>        export DISPLAY=:0.0
>    fi
>    echo "DISPLAY has been set to $DISPLAY"
> fi
> LC_CTYPE=en_US.UTF-8
> export LC_CTYPE
> export PATH="/usr/X11/bin:/usr/local/bin:/opt/local/bin:/opt/local/ 
> sbin:$PATH"
>
> On Feb 12, 2008, at 10:46 AM, Simon Urbanek wrote:
>
>> 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'
>
> _____________________________
> 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