[R] Installing Package rgl - Compilation Fails

Ranjan Maitra maitra at iastate.edu
Mon Feb 19 22:11:47 CET 2007


The error is different now. It now cannot find Xext library. Do a yum search on this and install that.

yum provides libXext

which will give you the package Xext which needs to be installed.

You may also need to install the libXext-devel.i386 package.

HTH.
Ranjan



On Mon, 19 Feb 2007 16:02:09 -0500 Rick Bilonick <rab45+ at pitt.edu> wrote:

> On Mon, 2007-02-19 at 19:56 +0000, Oleg Sklyar wrote:
> > Check again your error message:
> > 
> > opengl.hpp:24:20: error: GL/glu.h: No such file or directory
> > 
> > you need to install
> > 
> > mesa-libGLU-devel FC6 version is 6.5.1-7
> > 
> > which will provide development files for glut3. Needless to say the 
> > above will probably pool some dependencies and (-devel) means it will 
> > install *.h files as well. Start your FC package manager and search for 
> > "GLU", install the above and try again.
> > 
> > Best,
> >   Oleg
> > 
> 
> I installed a slightly newer version (the one that yum found):
> 
> mesa-libGLU-devel-6.5.1-9.fc6
> 
> but it still fails (I'm installing as root):
> 
> > install.packages("rgl")
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.70.tar.gz'
> Content type 'application/x-gzip' length 705556 bytes
> opened URL
> 
> ************************
> Deleted a bunch of lines
> ************************
> 
> 
> Disposable.hpp:13: warning: ___struct IDisposeListener___ has virtual
> functions but non-virtual destructor
> gui.hpp:56: warning: ___class gui::WindowImpl___ has virtual functions but
> non-virtual destructor
> gui.hpp:90: warning: ___class gui::GUIFactory___ has virtual functions but
> non-virtual destructor
> g++ -shared -L/usr/local/lib -o rgl.so api.o Background.o BBoxDeco.o
> Color.o device.o devicemanager.o Disposable.o FaceSet.o fps.o geom.o
> gl2ps.o glgui.o gui.o Light.o LineSet.o LineStripSet.o Material.o math.o
> osxgui.o osxlib.o par3d.o pixmap.o PointSet.o PrimitiveSet.o QuadSet.o
> RenderContext.o render.o rglview.o scene.o select.o Shape.o SphereMesh.o
> SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o
> TriangleSet.o Viewpoint.o win32gui.o win32lib.o x11gui.o x11lib.o -L
> -lX11 -lXext -lGL -lGLU -L/usr/lib -lpng12  -L/usr/lib/R/lib -lR
> /usr/bin/ld: cannot find -lXext
> collect2: ld returned 1 exit status
> make: *** [rgl.so] Error 1
> chmod: cannot access `/usr/lib/R/library/rgl/libs/*': No such file or
> directory
> ERROR: compilation failed for package 'rgl'
> ** Removing '/usr/lib/R/library/rgl'
> 
> The downloaded packages are in
>         /tmp/RtmpMc94yC/downloaded_packages
> Warning message:
> installation of package 'rgl' had non-zero exit status in:
> install.packages("rgl") 
> 
> 
> Rick B.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list