[R] problem with rgl package

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Tue May 5 12:07:03 CEST 2009

On Tue, May 5, 2009 at 10:55 AM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
> Dear R People:
> Here is something strange.  I'm using Ubuntu 9.04 with R 2.9.0.
> I need to have the rgl package.  Here are my results from installing:
>> install.packages("rgl")
> Warning in install.packages("rgl") :
> checking for X... no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing '/usr/local/lib/R/site-library/rgl'

> So presumably there is not an X11.  But when I put in "capabilities",
> it seems to be there.

 R will have X11 capabilities if you have the X11 _binary_ library
installed. To compile a package from source that needs to link with
the X11 library you need the development headers. They come in another

 From the command line, do:

 sudo apt-get install libx11-dev

and that should pull them from the Ubuntu repository. You'll need the
root password for this.

 It's possible you may need some other development headers once you
get past the X11 problem!


More information about the R-help mailing list