[R] [Resolved] Installing rgl package under Ubuntu

Ivailo Stoyanov istoyanov at ecolab.bas.bg
Fri Dec 15 14:56:14 CET 2006


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.

Installing libxt-dev (mentioned in the R-admin manual) helped somewhat
further, but the I've got:

 trying URL 'http://cran.xedio.de/src/contrib/rgl_0.68.tar.gz'
Content type 'application/x-gzip' length 701566 bytes
opened URL
==================================================
downloaded 685Kb

* Installing *source* package 'rgl' ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/share/R/include -I/usr/share/R/include -I -DHAVE_PNG_H
-I/usr/include/libpng12 -Iext     -fpic  -g -O2 -c api.cpp -o api.o
In file included from glgui.hpp:9,
                 from gui.hpp:11,
                 from rglview.h:10,
                 from Device.hpp:11,
                 from DeviceManager.hpp:9,
                 from api.cpp:14:
opengl.hpp:24:20: error: GL/glu.h: No such file or directory
api.cpp: In function ‘void rgl_user2window(int*, int*, double*, double*,
double*, double*, int*)’:
api.cpp:761: error: ‘gluProject’ was not declared in this scope
api.cpp: In function ‘void rgl_window2user(int*, int*, double*, double*,
double*, double*, int*)’:
api.cpp:789: error: ‘gluUnProject’ was not declared in this scope
make: *** [api.o] Error 1
chmod: cannot access `/usr/local/lib/R/site-library/rgl/libs/*': No such
file or directory
ERROR: compilation failed for package 'rgl'
** Removing '/usr/local/lib/R/site-library/rgl'
+---------------------------------------------+

Now, knowing the missing file (i.e. glu.h, from the more informative
feedback) I searched http://packages.ubuntu.com for the package
containing glu.h. This turned out to be libglu1-mesa-dev -- installing
it resolved the problem, but now I have to clear up the mess with the
unnecessarily installed *dev packages;)

Thanks for the helpful pointers!

Ivailo



More information about the R-help mailing list