Hello
Im trying to install package rgl in a freshly installed Ubuntu 8.04
system. I have a problem (actually is has been reported three times on
the R-list but the answers were too complicated for me) when
installing:
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/usr/local/lib/R/site-library/rgl'
The downloaded packages are in
	/tmp/RtmpcnTzdW/downloaded_packages
Warning message:
In install.packages("rgl", dep = TRUE) :
  installation of package 'rgl' had non-zero exit status
I see two potential explanations:
-to use rgl I should install some OpenGl package... is it right? which one then?
-rgl only needs x11 but does not find it. I see actually that there is
no x11 in /usr/ but X11R6 does the problem come from that?
PS: Im cross posting on R and rgl list
Thank you for your help!
Matthieu Stigler wrote:> Hello > > Im trying to install package rgl in a freshly installed Ubuntu 8.04 > system. I have a problem (actually is has been reported three times on > the R-list but the answers were too complicated for me) when > installing: > > configure: using libpng dynamic linkage > checking for X... no > configure: error: X11 not found but required, configure aborted. > ERROR: configuration failed for package 'rgl' > ** Removing '/usr/local/lib/R/site-library/rgl' > > The downloaded packages are in > /tmp/RtmpcnTzdW/downloaded_packages > Warning message: > In install.packages("rgl", dep = TRUE) : > installation of package 'rgl' had non-zero exit status > > > I see two potential explanations: > -to use rgl I should install some OpenGl package... is it right? which one then? >No, it's some X11 package you need to install, whichever one contains the includes and development libraries. I'm not an Ubuntu user so I can't tell you which one. BTW, rgl is now on R-forge, so you could post questions there. Duncan Murdoch> -rgl only needs x11 but does not find it. I see actually that there is > no x11 in /usr/ but X11R6 does the problem come from that? > > PS: Im cross posting on R and rgl list > > Thank you for your help! > > ______________________________________________ > R-help at r-project.org 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. >
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20081029/55d42573/attachment.pl>
In my case R was not built with X support, and I was also missing some openGL
libraries.  The info I needed was in the README inside the unzipped tarball
for rgl.  But rgl cleaned up after failing the install, and deleted the
README, so I never new the README was there until I manually untarr'ed the
tarball and looked inside it.  (Error msg from install.packages("rgl")
showed where the tarball was.)
I needed to do the following:
1.  Rebuild R with X support.  Add --with-X to the configure line when
building  See app.B.1 "Configuration Options" of R Installation &
Admin
manual
./configure --with-tcltk --with-system-zlib --with-system-bzlib
--enable-R-shlib --with-x
				(note:  might need --x-includes=DIR --x-libraries=DIR  .  Seemed to work
without these for me, presumably because they are in the default location)
			make
			make check
			make install
2.  Install missing openGL libraries (I'm on RHEL...use apt get on other
systems):
yum install mesa-libGL-devel mesa-libGLU-devel libpng-devel
3.  Install rgl
			> install.packages("rgl")
HTH
--
View this message in context:
http://r.789695.n4.nabble.com/Pkg-rgl-installation-fails-because-of-x11-tp871465p4646017.html
Sent from the R help mailing list archive at Nabble.com.