[R] Installing rgl package under Ubuntu
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Dec 15 15:03:41 CET 2006
On 12/15/2006 9:01 AM, Ivailo Stoyanov wrote:
> On Fri, 2006-12-15 at 08:55 -0500, Duncan Murdoch wrote:
> [snip]
>> 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
>
> Thanks for the response, but meanwhile I figured the solution and have
> just posted it to the list!
>
> It seems that the r-base-dev package from the Ubuntu R backport doesn't
> provide *all* the packages necessary to build add-on libraries.
I don't think it could: package writers are free to require anything
they like. rgl may be the only package requiring the OpenGL
headers/libs, for instance.
Duncan Murdoch
More information about the R-help
mailing list