Hi,

I've installed rgl package through R CMD INSTALL on a Debian-Sarge machine
(PIV) without any compiling error (see attached file), but when trying to
load this package within R (and also Rcmdr library) I get:

> library(rgl)
RGL: GLX extension missing on server
Error in firstlib(which.lib.loc, package) :
error rgl_init
error in library(rgl) : .First.lib failed
Segmentation fault

Same failure problem if I use the apt option (apt-get install r-cran-gl).
I've searched through the R mail archives but couldn't find or understand
the answer for this problem.

Thanks in advance!

Antonio Rodríguez

laptop:/home/toni/tmp# R CMD INSTALL rgl_0.64-13.tar.gz
* Installing *source* package 'rgl' ...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 /usr/X11R6/include

checking for libpng-config... yes
configure: creating ./config.status
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
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 x11gui.cpp -o x11gui.o
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 types.cpp -o types.o
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 math.cpp -o math.o
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 fps.cpp -o fps.o
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 pixmap.cpp -o pixmap.o
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 gui.cpp -o gui.o
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 api.cpp -o api.o
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 device.cpp -o device.o
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 devicemanager.cpp -o devicemanager.o
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 rglview.cpp -o rglview.o
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 scene.cpp -o scene.o
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 glgui.cpp -o glgui.o
g++ -shared  -o rgl.so x11lib.o x11gui.o types.o math.o fps.o pixmap.o gui.o api.o 
device.o devicemanager.o rglview.o scene.o glgui.o -L/usr/X11R6/lib -lpng12 -lstdc++ 
-lX11 -lXext -lGL -lGLU -lpng12   -L/usr/lib/R/bin -lR
** R
** demo
** inst
** help
 >>> Building/Updating help pages for package 'rgl'
Formats: text html latex example
bbox                              text    html    latex   example
bg                                text    html    latex   example
light                             text    html    latex
material                          text    html    latex
primitive                         text    html    latex   example
rgl-internal                      text    html    latex
rgl                               text    html    latex   example
scene                             text    html    latex
snapshot                          text    html    latex   example
spheres                           text    html    latex   example
sprites                           text    html    latex   example
surface                           text    html    latex   example
texts                             text    html    latex   example
viewpoint                         text    html    latex   example
* DONE (rgl)
laptop:/home/toni/tmp# R CMD INSTALL Rcmdr_0.9-11.tar.gz
* Installing *source* package 'Rcmdr' ...
** R
** inst
** help
>>> Building/Updating help pages for package 'Rcmdr'
Formats: text html latex example
Commander                         text    html    latex   example
Compute                           text    html    latex
Hist                              text    html    latex   example
Rcmdr.Utilities                   text    html    latex
RcmdrPager                        text    html    latex
Recode                            text    html    latex
Scatter3DDialog                   text    html    latex
aboutRcdmr                        text    html    latex
bin.var                           text    html    latex   example
colPercents                       text    html    latex
generalizedLinearModel            text    html    latex
linearModel                       text    html    latex
partial.cor                       text    html    latex   example
plotMeans                         text    html    latex
reliability                       text    html    latex   example
scatter3d                         text    html    latex   example
stem.leaf                         text    html    latex   example
* DONE (Rcmdr)
                                                                          
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to