[R] Installing rgl on linux

Georg von Graevenitz gvg at vwl.wi.tu-muenchen.de
Tue Jul 20 11:54:18 CEST 2004


Hi,

I'm new to R. I installed several packages in R (R-1.9.1) without
problems. I am trying to set R up to use Rcmdr, all I need now is rgl -
unfortunately I can't get it to install. There is a previous message
regarding this issue from June but even with information in those
answers I get stuck. 

I have attempted to install rgl form within R and from a shell using the
tarball (rgl_0.64-13.tar.gz). I attach the output for both attempts
below.

I`m running SuSE`s Linux (9.1) and have installed R from an rpm on CRAN
(Version 1.9.0 Patched (2004-05-05), ISBN 3-900051-00-3). 

It seems to make little difference which rpm I use (there is a 1.9.1 rpm
too).

I'd appreciate help as I would like to use R with a large group of
undergrads and they would really benefit from Rcmdr.

Thanks Georg

OUTPUT: 

-> FROM SHELL

pear:~/Dlds # R CMD INSTALL 
--configure-args="--x-includes=/usr/X11R6/include,
--x-libraries=/usr/X11R6/lib, --with-gl-includes=/usr/include/GL,
--with-gl-libraries=/usr/lib/GL --with-libpng=/usr/lib"  rgl
* 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... not found
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/lib/R/include -I/usr/X11R6/include, -I/usr/include/GL,
-I/usr/local/include -I/opt/gnome/include -mieee-fp -Wall -pedantic
-fno-exceptions -fno-rtti -fPIC  -g -O2 -c x11lib.cpp -o x11lib.o
In file included from glgui.h:9,
                 from gui.h:10,
                 from x11gui.h:10,
                 from x11lib.cpp:13:
opengl.h:19:19: GL/gl.h: No such file or directory
opengl.h:20:20: GL/glu.h: No such file or directory
In file included from gui.h:10,
                 from x11gui.h:10,
                 from x11lib.cpp:13:
glgui.h:27: error: 'GLuint' is used as a type, but is not defined as a
type.
glgui.h:28: error: 'GLuint' is used as a type, but is not defined as a
type.
glgui.h:29: error: 'GLuint' is used as a type, but is not defined as a
type.
glgui.h: In member function `void GLBitmapFont::enable()':
glgui.h:22: error: `listBase' undeclared (first use this function)
glgui.h:22: error: (Each undeclared identifier is reported only once for
each
   function it appears in.)
glgui.h:22: error: `glListBase' undeclared (first use this function)
In file included from x11lib.cpp:13:
x11gui.h:12:22: X11/Xlib.h: No such file or directory
x11gui.h:13:20: GL/glx.h: No such file or directory
In file included from x11lib.cpp:13:
x11gui.h: At global scope:
x11gui.h:35: error: `::Window' undeclared (first use here)
x11gui.h:35: error: syntax error before `)' token
x11gui.h:44: error: syntax error before `*' token
x11gui.h:45: error: syntax error before `*' token
x11gui.h:47: error: syntax error before `[' token
x11gui.h:52: error: 'GLXContext' is used as a type, but is not defined
as a
   type.
x11gui.h:56: error: syntax error before `;' token
x11gui.h:66: error: `XID' was not declared in this scope
x11gui.h:66: error: `X11WindowImpl' was not declared in this scope
x11gui.h:66: error: syntax error before `>' token
x11gui.h:68: error: 'WindowMap' is used as a type, but is not defined as
a
   type.
x11gui.h: In member function `bool gui::X11GUIFactory::isConnected()':
x11gui.h:32: error: `xdisplay' undeclared (first use this function)
x11gui.h: In member function `int gui::X11GUIFactory::getFD()':
x11gui.h:33: error: `xdisplay' undeclared (first use this function)
x11gui.h:33: error: `ConnectionNumber' undeclared (first use this
function)
make: *** [x11lib.o] Error 1
ERROR: compilation failed for package 'rgl'
** Removing '/usr/lib/R/library/rgl'


-> FROM INSIDE R:


> install.packages("rlg")
trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 180100 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .....
downloaded 175Kb

Warning message:
No package "rlg" on CRAN. in: download.packages(pkgs, destdir = tmpd,
available = available,
> install.packages("rgl")
trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 180100 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .....
downloaded 175Kb

trying URL `http://cran.r-project.org/src/contrib/rgl_0.64-13.tar.gz'
Content type `application/x-tar' length 472493 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .
downloaded 461Kb

* 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... no
configure: error: X11 not found, configure aborted.
reason: RGL requires X11 on non-win32 platforms.
ERROR: configuration failed for package 'rgl'
** Removing '/usr/lib/R/library/rgl'

Delete downloaded files (y/N)? y

Warning message:
Installation of package rgl had non-zero exit status in:
install.packages("rgl")



Thanks, 
Georg




More information about the R-help mailing list