[R] ERROR: compilation failed for package 'rgl'

Dirk Eddelbuettel edd at debian.org
Wed Aug 4 21:43:55 CEST 2004

On Wed, Aug 04, 2004 at 09:35:32PM +0200, Korponai J?nos wrote:
> I could not install rgl package. What is missing?
> config.status: creating src/Makevars
> ** libs
> g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H   
> -mieee-fp -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -g 
> -O2 -c x11lib.cpp -o x11lib.o
> In file included from glgui.h:9,
>                  from gui.h:10,
>                  from x11gui.h:10,
>                  from x11lib.cpp:13:
> opengl.h:19:19: GL/gl.h: No such file or directory
> opengl.h:20:20: GL/glu.h: No such file or directory
These files are mssing. 

You need the headers for GL, probably from a -dev package for your Linux
distribution. I use xlibmesa-gl-dev and xlibmesa-glu-dev under Debian; other
distros probably use similar but different names. The important part is the
-dev, otherwise you have libraries (to run binaries) but no headers (to
compile against).

Debian users can get a binary RGl package via 
	$ apt-get install r-cran-rgl
Hope this helps, Dirk 

Those are my principles, and if you don't like them... well, I have others.
                                                -- Groucho Marx

More information about the R-help mailing list