Hello. I'm having trouble installing rgl. I have a theory as to the problem. First, the error message and session info.> install.packages("rgl")trying URL 'http://probability.ca/cran/src/contrib/rgl_0.81.tar.gz' Content type 'application/x-gzip' length 1636939 bytes (1.6 Mb) opened URL =================================================downloaded 1.6 Mb * Installing *source* package 'rgl' ... checking for gcc... gcc -std=gnu99 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 -std=gnu99 accepts -g... yes checking for gcc -std=gnu99 option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -std=gnu99 -E checking for gcc... (cached) gcc -std=gnu99 checking whether we are using the GNU C compiler... (cached) yes checking whether gcc -std=gnu99 accepts -g... (cached) yes checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage checking for X... libraries , headers checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking for glEnd in -lGL... no configure: error: missing required library GL ERROR: configuration failed for package 'rgl' ** Removing '/usr/local/lib/R/library/rgl' The downloaded packages are in /tmp/RtmpZAeU9W/downloaded_packages Updating HTML index of packages in '.Library' Warning message: In install.packages("rgl") : installation of package 'rgl' had non-zero exit status> sessionInfo()R version 2.7.2 Patched (2008-09-02 r46486) i686-pc-linux-gnu locale: C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.7.2 So, the error appears to be related to libGL (or libGLU?). I am running OpenSUSE 10.2. I have the OpenGL packages installed. I have the MESA and MESA-devel packages installed which provide libGL.so.1 and libGLU.so.1. I also have the fglrx (proprietary ATI driver package installed) which also provides libGL.so.1 (but no libGLU.so.1). I suspect that an incompatible libGL is being found (both versions appear to be on the system in different directories). How do I confirm if this is the case and force a particular lib file during package installation? Kevin -- Kevin E. Thorpe Biostatistician/Trialist, Knowledge Translation Program Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057
On 03/09/2008 4:34 PM, Kevin E. Thorpe wrote:> Hello. > > I'm having trouble installing rgl. I have a theory as to the problem. > First, the error message and session info. > >> install.packages("rgl") > trying URL 'http://probability.ca/cran/src/contrib/rgl_0.81.tar.gz' > Content type 'application/x-gzip' length 1636939 bytes (1.6 Mb) > opened URL > =================================================> downloaded 1.6 Mb > > * Installing *source* package 'rgl' ... > checking for gcc... gcc -std=gnu99 > 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 -std=gnu99 accepts -g... yes > checking for gcc -std=gnu99 option to accept ISO C89... none needed > checking how to run the C preprocessor... gcc -std=gnu99 -E > checking for gcc... (cached) gcc -std=gnu99 > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc -std=gnu99 accepts -g... (cached) yes > checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed > checking for libpng-config... yes > configure: using libpng-config > configure: using libpng dynamic linkage > checking for X... libraries , headers > checking GL/gl.h usability... yes > checking GL/gl.h presence... yes > checking for GL/gl.h... yes > checking GL/glu.h usability... yes > checking GL/glu.h presence... yes > checking for GL/glu.h... yes > checking for glEnd in -lGL... no > configure: error: missing required library GL > ERROR: configuration failed for package 'rgl' > ** Removing '/usr/local/lib/R/library/rgl' > > The downloaded packages are in > /tmp/RtmpZAeU9W/downloaded_packages > Updating HTML index of packages in '.Library' > Warning message: > In install.packages("rgl") : > installation of package 'rgl' had non-zero exit status >> sessionInfo() > R version 2.7.2 Patched (2008-09-02 r46486) > i686-pc-linux-gnu > > locale: > C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] tools_2.7.2 > > So, the error appears to be related to libGL (or libGLU?). I am running > OpenSUSE 10.2. I have the OpenGL packages installed. I have the MESA > and MESA-devel packages installed which provide libGL.so.1 and > libGLU.so.1. I also have the fglrx (proprietary ATI driver package > installed) which also provides libGL.so.1 (but no libGLU.so.1). I > suspect that an incompatible libGL is being found (both versions appear > to be on the system in different directories). > > How do I confirm if this is the case and force a particular lib file > during package installation?rgl is now hosted on R-forge, at https://r-forge.r-project.org/projects/rgl/. You could post questions there, and be one of the first to do so :-). But the general idea is probably to run the configure script manually, and look at the output. So you would download and untar rgl (or just check it out using svn), then in the main directory, run ./configure. I think this will produce a config.log file that you can check for all the gory details. Duncan Murdoch
Hey guys,I'm working with R version 2.14.1 (2011-12-22) on a unix machine and I'm having a similar problem. I have a matrix and i want to do a simple correspondance analysis. I tried to install the ca package i get this error:> library(ca)Loading required package: rgl Warning messages: 1: In rgl.init(initValue) : RGL: no suitable visual available 2: In fun(libname, pkgname) : error in rgl_init>so then i downloaded rgl, at the end of the installation process for rgl it says: Warning messages: 1: In rgl.init(initValue) : RGL: no suitable visual available 2: In fun(libname, pkgname) : error in rgl_init and when you look in the library for rgl you get:> library(rgl) >Would anyone know (in simple language, i'm a biologist, not a statistician :( ) either how to fix this, or an alternative package that will do a simple correpondance analysis on a matrix? Many thanks Aoife -- View this message in context: http://r.789695.n4.nabble.com/Installing-rgl-tp865867p4409845.html Sent from the R help mailing list archive at Nabble.com.