Skip to content
Prev 169695 / 398506 Next

installing R on Ubuntu

Hi Dirk,
Sorry, I'm not trying to drag out the installation process here, but just
trying to get it to work right in Linux.
Dirk Eddelbuettel wrote:
I tried this suggestion, and here was the terminal output:

r-cran-rgl is already the newest version.
r-cran-rgl set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So, just to double-check, I went into R as sudo, entered update.packages(),
and got this:

rgl :
 Version 0.76 installed in /usr/lib/R/site-library 
 Version 0.82 available at http://streaming.stat.iastate.edu/CRAN

...and later this...

* 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... no
checking libpng... checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking for png_read_update_info in -lpng... no
configure: libpng header and lib found
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/lib/R/site-library/rgl'
** Restoring previous '/usr/lib/R/site-library/rgl'

The downloaded packages are in
	/tmp/RtmpIW4d37/downloaded_packages
Warning message:
In install.packages(update[instlib == l, "Package"], l, contriburl =
contriburl,  :
  installation of package 'rgl' had non-zero exit status

Thread (32 messages)

Paul Heinrich Dietrich installing R on Ubuntu Feb 7 cruz installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Tom Backer Johnsen installing R on Ubuntu Feb 8 Joseph Magagnoli installing R on Ubuntu Feb 8 Brian Ripley installing R on Ubuntu Feb 8 Dirk Eddelbuettel installing R on Ubuntu Feb 8 Dirk Eddelbuettel installing R on Ubuntu Feb 8 John Fox installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Tom Backer Johnsen installing R on Ubuntu Feb 8 Jonathan Baron installing R on Ubuntu Feb 8 Dirk Eddelbuettel installing R on Ubuntu Feb 8 Dirk Eddelbuettel installing R on Ubuntu Feb 8 Paul Heinrich Dietrich installing R on Ubuntu Feb 8 Thomas Lumley installing R on Ubuntu Feb 8 Gavin Simpson installing R on Ubuntu Feb 9 Jonathan Baron installing R on Ubuntu Feb 9 Neil Shephard installing R on Ubuntu Feb 9 Michael Dewey installing R on Ubuntu Feb 9 M. Edward (Ed) Borasky installing R on Ubuntu Feb 9 patricia garcía gonzález outer to vectors Feb 9 Jorge Ivan Velez outer to vectors Feb 9 jim holtman outer to vectors Feb 9 Neil Shephard installing R on Ubuntu Feb 10 Douglas Bates installing R on Ubuntu Feb 10 Rolf Turner installing R on Ubuntu Feb 10 Vincent Goulet installing R on Ubuntu Feb 11