[R] Error install rgl package on linux

Muhammad Subianto msubianto at gmail.com
Wed Jul 12 15:28:43 CEST 2006


Dear all,

I tried to install rgl package on my linux machine fc5, I got an error.
Here I run R as user,
$ R

> options(repos=c(CRAN="http://cran.at.r-project.org/"))
> install.packages("rgl", lib="/home/subianto/local/lib/R/library/site-packages", dependencies=TRUE)
trying URL 'http://cran.at.r-project.org/src/contrib/rgl_0.67-2.tar.gz'
Content type 'application/x-tar' length 567592 bytes
opened URL
==================================================
downloaded 554Kb

* 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 , 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/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H
-I/usr/include/libpng12 -I/usr/local/include   -fpic  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -c api.cpp -o api.o
Disposable.hpp:13: warning: 'struct IDisposeListener' has virtual
functions but non-virtual destructor
types.h:77: warning: 'class DestroyHandler' has virtual functions but
non-virtual destructor
gui.hpp:56: warning: 'class gui::WindowImpl' has virtual functions but
non-virtual destructor
gui.hpp:90: warning: 'class gui::GUIFactory' has virtual functions but
non-virtual destructor
pixmap.h:39: warning: 'class PixmapFormat' has virtual functions but
non-virtual destructor

<snip>

Disposable.hpp:13: warning: 'struct IDisposeListener' has virtual
functions but non-virtual destructor
gui.hpp:56: warning: 'class gui::WindowImpl' has virtual functions but
non-virtual destructor
gui.hpp:90: warning: 'class gui::GUIFactory' has virtual functions but
non-virtual destructor
g++ -shared -L/usr/local/lib -o rgl.so api.o Background.o BBoxDeco.o
Color.o device.o devicemanager.o Disposable.o FaceSet.o fps.o geom.o
gl2ps.o glgui.o gui.o Light.o LineSet.o LineStripSet.o Material.o
math.o osxgui.o osxlib.o par3d.o pixmap.o PointSet.o PrimitiveSet.o
QuadSet.o RenderContext.o render.o rglview.o scene.o select.o Shape.o
SphereMesh.o SphereSet.o SpriteSet.o String.o Surface.o TextSet.o
Texture.o TriangleSet.o types.o Viewpoint.o win32gui.o win32lib.o
x11gui.o x11lib.o -L -lX11 -lXext -lGL -lGLU -L/usr/lib -lpng12
-L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [rgl.so] Error 1
chmod: cannot access
`/home/subianto/local/lib/R/library/site-packages/rgl/libs/*': No such
file or directory
ERROR: compilation failed for package 'rgl'
** Removing '/home/subianto/local/lib/R/library/site-packages/rgl'

The downloaded packages are in
        /tmp/RtmpH3o1qG/downloaded_packages
Warning messages:
1: installation of package 'rgl' had non-zero exit status in:
install.packages("rgl", lib =
"/home/subianto/local/lib/R/library/site-packages",
2: cannot create HTML package index in: tools:::unix.packages.html(.Library)
>

I think the error about missing devel-libraries on my fc5 but I do not
know which libraries are. I apologize for my poor linux knowledge and
expertise. Thank you very much.

Best, Muhammad Subianto


> version
               _
platform       i686-redhat-linux-gnu
arch           i686
os             linux-gnu
system         i686, linux-gnu
status
major          2
minor          3.1
year           2006
month          06
day            01
svn rev        38247
language       R
version.string Version 2.3.1 (2006-06-01)
>

$ uname -r
2.6.17-1.2145_FC5



More information about the R-help mailing list