Skip to content

Weird problems in Leopard

8 messages · stephen sefick, Duncan Murdoch, Jan de Leeuw +2 more

#
I've just bought a new iMac with 10.5.4 of OS X.  I installed R 2.7.1 on 
it with no problems.

I tried to install Xcode 3.0, but three downloads (two Firefox, one 
Safari) were corrupt, so I installed 3.1.

Now, the weirdness:

When I try to install rgl from the CRAN source,  or from a local 
directory using R CMD INSTALL, the configure script fails with these 
messages:

checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for glEnd in -lGL... no
configure: error: missing required library GL
ERROR: configuration failed for package 'rgl'
** Removing '/Library/Frameworks/R.framework/Resources/library/rgl'
** Restoring previous 
'/Library/Frameworks/R.framework/Resources/library/rgl'


However, if I run the configure script (as ./configure) within the local 
directory, it succeeds:

checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for glEnd in -lGL... yes

I can then move the configure script out of the way and R CMD INSTALL 
proceeds (until it gets to the FTVectoriser error, which I'm working on 
fixing).


Why would R CMD INSTALL make the configure script fail???

Duncan Murdoch
#
Did you compile R on the same computer ?
On Jul 16, 2008, at 13:55 , Duncan Murdoch wrote:

            
===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of  
Statistics;
Director: UCLA Center for Environmental Statistics (CES);
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software;
US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
.mac: jdeleeuw ++++++  aim: deleeuwjan ++++++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org
   
-------------------------------------------------------------------------------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
#
stephen sefick wrote:
I have Xcode 3.1 plus the gfortran from Simon's site, so I think so.  In 
any case, things go pretty far if I don't run within R CMD INSTALL.

Duncan Murdoch
#
Jan de Leeuw wrote:
No, I just installed the binary from CRAN.  That's likely the problem.

Duncan
#
Yes, that R comes with its own config parameters, and
much has changed in X11/GL since Leopard first appeared.
On Jul 16, 2008, at 14:09 , Duncan Murdoch wrote:

            
===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of  
Statistics;
Director: UCLA Center for Environmental Statistics (CES);
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software;
US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
.mac: jdeleeuw ++++++  aim: deleeuwjan ++++++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org
   
-------------------------------------------------------------------------------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
#
On Jul 16, 2008, at 4:55 PM, Duncan Murdoch wrote:

            
Hard to tell unless you look at config.log... Anyway, unless you work  
around the bug in Leopard's X11 in your configure you have fix to X11,  
GL is broken:

http://r.research.att.com/building.html

Also if you want to use X11 on Leopard seriously, it is recommended to  
use this update:

http://xquartz.macosforge.org/trac/wiki

Cheers,
Simon