[R-SIG-Mac] building rgl on mac os 10.8

Simon Urbanek simon.urbanek at r-project.org
Mon Nov 5 04:27:35 CET 2012


On Nov 4, 2012, at 8:33 PM, Peter Fields wrote:

> I've been working to build a set of R functions that require rgl, specifically phytools. I'm using R v. 2.15.2 (built using homebrew; I've already run this particular issue through the homebrew group and so I can at least exclude that particular source of error) on a mac machine running os 10.8. The error arises with the new os as far as I can tell. There have been some significant changes with the new os, eg the X11/xquartz changes. I've made sure that the build environment includes the requisite components without success. I was wondering if you have any suggestions on how might make a successful install of rgl on my system?  
> 
> I have attempted a previously used fix for lion. Specifically, I pulled down the binary package from cran and deleted aglrgl.so and then attempted an install. When I make the modification to the package and retry the install, the install seems successful. However, when I try to call the library, get the following error:
> 
>> library(rgl)
> Error: package ‘rgl’ was built for universal-apple-darwin9.8.0
> 
> 

You can't use CRAN binaries with homebrew. If you use homebrew, you're entirely on your own and you have to build everything from sources.

Cheers,
Simon




> Is there a way of modifying the source package to deal with the aglrgl problem (that way the source might be built for my particular architecture)?
> 
> Thanks in advance for any advice you might provide, and please let me know if further information about my machine would be useful.
> 
> Cheers
> Peter
> 
> 
> --  
> ******************************** Peter Fields Graduate Student 059 Gilmer Hall University of Virginia Charlottesville, VA. 22904 pdf8z at virginia.edu (mailto:pdf8z at virginia.edu)<mailto:pdf8z at virginia.edu> (mailto:pdf8z at virginia.edu) http://people.virginia.edu/~pdf8z/ ********************************
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list