Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install the R package rgl on Ubuntu 9.10? [duplicate]

Tags:

r

rgl

Possible Duplicate:
Problem Installing rgl

I'm trying to install the R package rgl on Ubuntu 9.10. I'm using R version 2.12.1.

I got the following error: "configure: error: missing required header GL/gl.h"

I asked this question earlier without the restriction that I use Ubuntu 9.10, and the answer I got was to update R, but I haven't been able to do this, possibly because Ubuntu 9.10 is not supported by the folks at CRAN.

like image 288
BenH Avatar asked Jan 18 '23 16:01

BenH


1 Answers

Just do

  sudo apt-get install r-cran-rgl

As there is a reason we spent time harder-to-install packages with less common dependencies. So that you do not have to worry.

If you insist on building it locally, you can still take advantage of the package for understanding its Build-Dependencies, i.e. apt-get build-dep r-cran-rgl. For the current package (on Ubuntu 11.04) I have

 Build-Depends: debhelper (>= 7.0.0), r-base-dev (>= 2.12.1), cdbs, \
        libgl1-mesa-dev | libgl-dev, \
        libglu1-mesa-dev | libglu-dev, \
        libpng12-dev, libx11-dev, libxt-dev, x11proto-core-dev
like image 127
Dirk Eddelbuettel Avatar answered Jan 21 '23 05:01

Dirk Eddelbuettel