开发者

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

开发者 https://www.devze.com 2023-04-05 23:21 出处:网络
This question already has answers here: Closed 11 years ago. 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.
This question already has answers here: Closed 11 years ago.

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 开发者_如何学JAVAbeen able to do this, possibly because Ubuntu 9.10 is not supported by the folks at CRAN.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号