[R] Issues in installing rgl in Mac OS 10.6.8

Berend Hasselman bhh at xs4all.nl
Sat Mar 10 13:00:31 CET 2012

On 10-03-2012, at 12:49, Hans Ekbrand wrote:

> On Fri, Mar 09, 2012 at 04:52:31PM -0800, A Ezhil wrote:
>> Dear All,
>> I am trying to install rgl on my mac notebook from the source file. I tried using: /usr/bin/R64 CMD INSTALL rgl_0.92.798.tar.gz and get the following
>> error message:
>> 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.14/Resources/library/rgl’
>> * restoring previous
>> ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl’
>> I do see a directory X11 installed under /usr and Sys.getenv("PATH") inside R gives me: [1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
>> Could you please hep me to install rgl package?
> Not really, but I can offer a hint: I think your system has the
> _runtime_ libraries for X11 (in /usr/X11), but you need _development_
> libraries to comile rgl.
> I have no knowledge about Mac OS, but in my system, Debian GNU/Linux,
> the needed libraries to build rgl from source are:
> libgl1-mesa-dev
> libglu1-mesa-dev
> mesa-common-dev

That's for Linux systems not for Mac OS X.

One of the many possibilities is, is that your X11 has been corrupted/trashed.
You could try reinstalling X11 (from the install disc).


More information about the R-help mailing list