[R] Installing rgl package under Ubuntu

Duncan Murdoch murdoch at stats.uwo.ca
Fri Dec 15 14:55:34 CET 2006


On 12/15/2006 8:35 AM, Ivailo Stoyanov wrote:
> On Fri, 2006-12-15 at 14:14 +0100, Peter Dalgaard wrote:
>> I don't think that is the right package (xserver...dev sounds like
>> something  for developing X11 servers). Look for something like
>> xorg-x11-devel  or thereabouts. You likely also need some packages with
>> "GL" or "Mesa" in the name plus their "dev" versions.
> 
> I have located x11-proto-gl-dev and libgl-mesa-dev via synaptic as
> containing "gl" "mesa" and "dev", but installing them doesn't get the
> problem resoved...

rgl needs to know where the X11 headers and libs are, and it appears 
that the configure script (which was written by autoconfig) isn't 
finding them.  You probably need to specify them manually, when you run 
configure:

   --x-includes=DIR    X include files are in DIR
   --x-libraries=DIR   X library files are in DIR

If you built R, you can find where R found these by looking at the 
config.log:  search for X_CFLAGS and X_LIBS, and you'll see something like

X_CFLAGS=' -I/usr/X11R6/include'
X_LIBS=' -L/usr/X11R6/lib -lX11 -lXt -lXmu'

which should mean that this would install rgl on this system:

R CMD INSTALL rgl --configure-args="--x-includes=/usr/X11R6/include 
--x-libraries=/usr/X11R6/lib"

(In fact, the configure script found them in those locations by itself.)

Duncan Murdoch



More information about the R-help mailing list