Dear R list,

I am having problem installing the package rgl on a redhat system.

System info:

Linux lci4.eu.novartis.net 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 
2005 x86_64 x86_64 x86_64 GNU/Linux


R sessionInfo():

R version 2.12.1 (2010-12-16)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

Error msg when installing rgl:

 install.packages('rgl_0.92.798.tar.gz')
inferring 'repos = NULL' from the file name
* installing *source* package ārglā ...
checking for gcc... gcc -std=gnu99
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 -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for gcc... (cached) gcc -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -std=gnu99 accepts -g... (cached) yes
checking for gcc -std=gnu99 option to accept ISO C89... (cached) none 
needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... libraries /usr/X11R6/lib64, headers /usr/X11R6/include
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glEnd in -lGL... yes
checking for gluProject in -lGLU... yes
checking for freetype-config... yes
configure: using Freetype and FTGL
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c BBoxDeco.cpp -o BBoxDeco.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Background.cpp -o Background.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Color.cpp -o Color.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Disposable.cpp -o Disposable.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Light.cpp -o Light.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c LineSet.cpp -o LineSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c LineStripSet.cpp -o LineStripSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Material.cpp -o Material.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c PointSet.cpp -o PointSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c PrimitiveSet.cpp -o PrimitiveSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c QuadSet.cpp -o QuadSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c RenderContext.cpp -o RenderContext.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Shape.cpp -o Shape.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c SphereMesh.cpp -o SphereMesh.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c SphereSet.cpp -o SphereSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c SpriteSet.cpp -o SpriteSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c String.cpp -o String.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Surface.cpp -o Surface.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c TextSet.cpp -o TextSet.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Texture.cpp -o Texture.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c Viewpoint.cpp -o Viewpoint.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c api.cpp -o api.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c assert.cpp -o assert.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c callbacks.cpp -o callbacks.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c device.cpp -o device.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c devicemanager.cpp -o devicemanager.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c fps.cpp -o fps.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c ftgl.cpp -o ftgl.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c geom.cpp -o geom.o
gcc -std=gnu99 -I/usr/people/rim/zhangx2s/software/R/lib64/R/include 
-DHAVE_PNG_H -I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE 
-Iext/ftgl -I/usr/include/freetype2 -Iext -I/usr/local/include    -fpic -g 
-O2 -c gl2ps.c -o gl2ps.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c glErrors.cpp -o glErrors.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c glgui.cpp -o glgui.o
glgui.cpp: In constructor `GLFTFont::GLFTFont(const char*, int, double, 
const char*)':
glgui.cpp:118: warning: converting to `unsigned int' from `double'
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c gui.cpp -o gui.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c init.cpp -o init.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c osxgui.cpp -o osxgui.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c osxlib.cpp -o osxlib.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c par3d.cpp -o par3d.o
g++ -I/usr/people/rim/zhangx2s/software/R/lib64/R/include -DHAVE_PNG_H 
-I/usr/include/libpng12 -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl 
-I/usr/include/freetype2 -Iext -I/usr/local/include   -g -O2 -fpic  -g -O2 
-c pixmap.cpp -o pixmap.o
In file included from pixmap.cpp:14:
pngpixmap.h: In static member function `static void 
PNGPixmapFormat::Load::info_callback(png_struct*, png_info*)':
pngpixmap.h:180: error: `png_set_expand_gray_1_2_4_to_8' undeclared (first 
use this function)
pngpixmap.h:180: error: (Each undeclared identifier is reported only once 
for each function it appears in.)
make: *** [pixmap.o] Error 1
ERROR: compilation failed for package ārglā
* removing ā/netfs/people/rim/zhangx2s/software/R/lib64/R/library/rglā
Warning message:
In install.packages("rgl_0.92.798.tar.gz") :
  installation of package 'rgl_0.92.798.tar.gz' had non-zero exit status

Since I don't have root access, I installed libpng locally as well, but it 
didn't help.

Any ideas will be very appreciated. Thank you.

-Xian
	[[alternative HTML version deleted]]

