[R] problem with rgl package
Dirk Eddelbuettel
edd at debian.org
Tue May 5 12:26:42 CEST 2009
On 5 May 2009 at 04:55, Erin Hodgess wrote:
| Dear R People:
|
| Here is something strange. I'm using Ubuntu 9.04 with R 2.9.0.
|
| I need to have the rgl package. Here are my results from installing:
So run
sudo apt-get install r-cran-rgl
to install the pre-build binary. If you must or want to build it yourself,
use the packaging system to get the build-dependencies installed:
sudo apt-get build-dep r-cran-rgl
| > install.packages("rgl")
| Warning in install.packages("rgl") :
| argument 'lib' is missing: using '/usr/local/lib/R/site-library'
| --- Please select a CRAN mirror for use in this session ---
| Loading Tcl/Tk interface ... done
| trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgl_0.84.tar.gz'
| Content type 'application/x-gzip' length 1670659 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... no
| configure: error: X11 not found but required, configure aborted.
You don't have X11 headers. Run the second command above if you really want
to build the package.
| ERROR: configuration failed for package 'rgl'
| ** Removing '/usr/local/lib/R/site-library/rgl'
|
| The downloaded packages are in
| /tmp/RtmpiJh20a/downloaded_packages
| Warning message:
| In install.packages("rgl") :
| installation of package 'rgl' had non-zero exit status
|
| So presumably there is not an X11. But when I put in "capabilities",
| it seems to be there.
|
| > capabilities()
| jpeg png tiff tcltk X11 aqua http/ftp sockets
| TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE
| libxml fifo cledit iconv NLS profmem cairo
| TRUE TRUE TRUE TRUE TRUE TRUE TRUE
| >
That means you are using an R binary capable of _running_ under X11. This
says nothing about compiling.
| Has anyone run into this, please? What are the solutions, please?
As (almost) always: get the proper -dev packages for headers and libs.
Dirk
|
| thanks,
| Erin
|
| --
| Erin Hodgess
| Associate Professor
| Department of Computer and Mathematical Sciences
| University of Houston - Downtown
| mailto: erinm.hodgess at gmail.com
|
| ______________________________________________
| 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.
--
Three out of two people have difficulties with fractions.
More information about the R-help
mailing list