[R-SIG-Mac] rgl on 10.7: has anyone tried it?

Marius Hofert marius.hofert at math.ethz.ch
Tue Oct 11 22:10:36 CEST 2011


Dear all,

I tried to install the package rgl on 10.7. Here's the output:

##############################################################################

> install.packages("rgl", type="source")
install.packages("rgl", type="source")
Installing package(s) into ‘/Library/Frameworks/R.framework/library’
(as ‘lib’ is unspecified)
trying URL 'http://stat.ethz.ch/CRAN/src/contrib/rgl_0.92.798.tar.gz'
Content type 'application/x-gzip' length 1677772 bytes (1.6 Mb)
opened URL
==================================================
downloaded 1.6 Mb

* installing *source* package ‘rgl’ ...
checking for gcc... gcc -arch x86_64 -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -arch x86_64 -std=gnu99 accepts -g... yes
checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -arch x86_64 -std=gnu99 -E
checking for gcc... (cached) gcc -arch x86_64 -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -arch x86_64 -std=gnu99 accepts -g... (cached) yes
checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... libraries , headers 
checking for glEnd in -lGL... no
configure: error: missing required library GL
ERROR: configuration failed for package ‘rgl’
* removing ‘/Library/Frameworks/R.framework/library/rgl’

The downloaded packages are in
	‘/private/var/folders/5r/fpc7qzk55ll71t9j8l9d1d_00000gn/T/RtmpQ6nuVK/downloaded_packages’
Warning message:
In install.packages("rgl", type = "source") :
  installation of package 'rgl' had non-zero exit status
> 

##############################################################################

Apparently, I'm missing the "GL" library. But how can I install it? I searched for it on the web and mainly found that the Mac should have Open GL already installed (?).

Cheers,

Marius


More information about the R-SIG-Mac mailing list