Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install the R package rgl on Ubuntu 9.10, using R version 2.12.1?

Tags:

r

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"

Edit: My original question did not specify that the operating system must be Ubuntu 9.10. I gather that otherwise it would be a good idea to update R, but that this cannot be done on Ubuntu 9.10. Because I'm stupid, I posted a new question instead of editing this one, so some discussion has occurred there.

like image 543
BenH Avatar asked Sep 19 '11 15:09

BenH


1 Answers

I had to deal with this problem many times, and this always worked just fine: type in a terminal

sudo apt-get install libglu1-mesa-dev

After this I just start R and install the rgl package with the install.packages function

like image 161
Juan Avatar answered Oct 15 '22 21:10

Juan