[R] rgl installation problems

E GCP egcp at hotmail.com
Fri Jun 25 19:36:30 CEST 2004


Hi!

I'm new to R, but have worked with Splus before. I installed several 
packages in R (R-1.9.1) without problems, but when I try to install rgl 
(rgl_0.64-13.tar.gz). I get the following, and the package does not install. 
Any help would be greatly appreciated. I'm running R in redhat 9.

Thanks,
Enrique
-------
[my pc]# 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... no
checking libpng in /usr/local... not found
checking libpng in /usr... found
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c x11lib.cpp -o x11lib.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c x11gui.cpp -o x11gui.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c types.cpp -o types.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c math.cpp -o math.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c fps.cpp -o fps.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c pixmap.cpp -o pixmap.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c gui.cpp -o gui.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c api.cpp -o api.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c device.cpp -o device.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c devicemanager.cpp -o devicemanager.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c rglview.cpp -o rglview.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c scene.cpp -o scene.o
g++ -I/usr/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/include 
-I/usr
/local/include  -Wall -pedantic -fno-exceptions -fno-rtti -fPIC  -O2 -g 
-march=i
386 -mcpu=i686 -c glgui.cpp -o glgui.o
g++  -L/usr/local/lib -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
-L/usr/lib -lstdc++ -lX11 -lXext -lGL -lGLU -lpng
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In 
functio
n `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
x11lib.o(.text+0x84): In function `set_R_handler':
/tmp/R.INSTALL.8663/rgl/src/x11gui.h:33: undefined reference to 
`R_InputHandlers
'
x11lib.o(.text+0x92):/tmp/R.INSTALL.8663/rgl/src/x11gui.h:33: undefined 
referenc
e to `addInputHandler'
x11lib.o(.text+0xfb): In function `unset_R_handler':
/tmp/R.INSTALL.8663/rgl/src/x11lib.cpp:52: undefined reference to 
`R_InputHandle
rs'
x11lib.o(.text+0x103):/tmp/R.INSTALL.8663/rgl/src/x11lib.cpp:52: undefined 
refer
ence to `removeInputHandler'
collect2: ld returned 1 exit status
make: *** [rgl.so] Error 1
ERROR: compilation failed for package 'rgl'
** Removing '/usr/lib/R/library/rgl'
[my pc]




More information about the R-help mailing list