Skip to content
Prev 106214 / 398506 Next

Installing rgl package under Ubuntu

On 12/15/2006 8:35 AM, Ivailo Stoyanov wrote:
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