[R] installing "rgl" package

Santosh santosh2005 at gmail.com
Fri Nov 24 00:05:45 CET 2017


Hi Rxperts,
I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate
your assistance .. I tried several leads available on various discussion
fora and nothing helped so far.


* installing *source* package ‘rgl’ ...checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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... noconfigure: error: missing required
library GLERROR: configuration failed for package ‘rgl’* removing
‘/data/R/lib/rgl’Warning in install.packages :
  installation of package ‘rgl’ had non-zero exit status

Checking the system dependencies based on README..

system('dpkg -l |grep  libgl1')ii  libgl1-mesa-dev
  10.1.3-0ubuntu0.6                       amd64        free
implementation of the OpenGL API -- GLX development files

> system('dpkg -l |grep  libglu1')ii  libglu1-mesa:amd64                    9.0.0-2                                 amd64        Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev                      9.0.0-2
           amd64        Mesa OpenGL utility library -- development
files

> system('dpkg -l |grep  libpng')ii  libpng12-0:amd64                      1.2.50-1ubuntu2.14.04.2                 amd64        PNG library - runtime
ii  libpng12-dev                          1.2.50-1ubuntu2.14.04.2
           amd64        PNG library - development

I also tried installing .. using the following command..
install.packages("rgl",dep=T,
INSTALL_opts="--no-multiarch",
configure.args=c(rgl="--with-gl-includes=/usr/include/GL"))

Thanks so much for your help!
Santosh

	[[alternative HTML version deleted]]



More information about the R-help mailing list