[R] Installing Package rgl - Compilation Fails
Rick Bilonick
rab45+ at pitt.edu
Mon Feb 19 22:02:09 CET 2007
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.
More information about the R-help
mailing list