[R] rgl installation problems

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jun 28 19:47:24 CEST 2004


On Mon, 28 Jun 2004, E GCP wrote:

> Thanks for your quick replies, and excuse my naivete, but how do I fix the 
> problem, so the rgl package installs?

We have no idea what is wrong on your system -- all we can tell is that
you have done something wrong but we were not sitting at your shoulder
when you did.  Perhaps you should try re-building R from scratch, paying
close attention to any messages?

Meanwhile, try to follow the posting guide and not HTML-ize your mail.

> Thanks again,
> Enrique
> 
> >From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> >Subject: Re: [R] rgl installation problems
> >Date: Fri, 25 Jun 2004 20:14:24 +0100 (BST)
> >
> >Here's what should happen on RH9 (with the latest libpng and gcc in
> >/usr/local/lib)
> >
> >g++ -shared -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/local/lib -Wl,-rpath,/usr/local/lib
> >-lpng12 -lz -lm -lstdc++ -lX11 -lXext -lGL -lGLU -lpng12 -lz -lm
> >
> >Note that he had no --shared but did have crt1.o, that is was trying to
> >build a standalone executable and not a shared object.
> >
> >Something is wrong with the R installation's rules to make shared
> >libraries.
> >
> >On Fri, 25 Jun 2004, Duncan Murdoch wrote:
> >
> > > On Fri, 25 Jun 2004 17:36:30 +0000, "E GCP" 
> <egcp at hotmail.com> wrote :
> > >
> > > >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.
> > >
> > > The missing reference R_InputHandlers is declared in the
> > > $RHOME/src/include/R_ext/eventloop.h file, and I believe is 
> compiled
> > > into the library R_X11 (with some extension).  You don't seem to 
> have
> > > that in the list of libraries:
> > >
> > > >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
> > >
> > > I don't know what you'll need to do to fix this, since I'm using
> > > Windows, so none of this stuff happens there, and I could be
> > > completely wrong about it.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list