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

左心房为你撑大大i 提交于 2020-01-01 13:37:25

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/7486450/how-do-i-install-the-r-package-rgl-on-ubuntu-9-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!