[R] installing rgl package on linux platform

Dirk Eddelbuettel edd at debian.org
Tue Sep 18 20:55:54 CEST 2007


On Tue, Sep 18, 2007 at 02:08:18PM -0400, Leeds, Mark (IED) wrote:
> I am using Redhat Linux and my info is below. I was trying to install
> the rgl package using R CMD INSTALL and it was doing
> fine until it got to the compilation of a pixmap program ? Does anyone
> know what I could do to fix that ? Is it possible that
> this package is not usable on this platform ? Thanks.

Naaa, of course it does work on Linux. We have had rgl in Debian for years.

[...]
> g++ -I/ms/dist/fsf/PROJ/R/2.5.0/exec/lib/R/include
> -I/ms/dist/fsf/PROJ/R/2.5.0/exec/lib/R/include -DHAVE_PNG_H
> -I/usr/X11R6/include -Iext    -g -O2 -fpic  -g -O2 -c pixmap.cpp -o
> pixmap.o
> In file included from pixmap.cpp:13:
> pngpixmap.h:273: syntax error before `*' token
> pngpixmap.h: In static member function `static void 
>    PNGPixmapFormat::Load::info_callback(png_struct*, png_info*)':
> pngpixmap.h:180: `png_set_gray_1_2_4_to_8' undeclared (first use this
> function)
> pngpixmap.h:180: (Each undeclared identifier is reported only once for
> each 
>    function it appears in.)

You don't have the PNG library and/or headers. Install those, and try
again.

Dirk

-- 
Three out of two people have difficulties with fractions.



More information about the R-help mailing list