Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the error " missing required header GL/gl.h" while installing the Package mvoutlier in R?

Tags:

r

I am trying to install the package mvoutlier but following error occurs during installation:

install.packages("mvoutlier") configure: error: missing required header GL/gl.h  ERROR: configuration failed for package ‘rgl’ * removing ‘/home/sam/R/x86_64-pc-linux-gnu-library /2.15/rgl’ ERROR: dependency ‘rgl’ is not available for package ‘compositions’ * removing ‘/home/sam/R/x86_64-pc-linux-gnu-library/2.15/compositions’ ERROR: dependency ‘compositions’ is not available for package ‘mvoutlier’ * removing ‘/home/sam/R/x86_64-pc-linux-gnu-library/2.15/mvoutlier’ 

After that I have install the rgl package successfully, then I tried to install the compositions package then the again same error occurs. Then I have again tried to install the mvoutlier package the same error occurs.

Can anyone let me know how I can resolve this problem. Thanking you in advance.

like image 595
Saurabh Avatar asked Mar 08 '13 11:03

Saurabh


1 Answers

I suspect you are running Ubuntu 12.04.I think you're going to find that this works for the GL/gl.h problem:

install these at the regular old terminal, ie pretend R doesn't exist for now:

libglu1-mesa-dev freeglut3-dev mesa-common-dev 

You might get the following error later (in R) because of a tcl b****/gripe/complaint:

Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :    [tcl] can't find package BWidget. 

To fix this problem, if you have it:

sudo apt-get install bwidget 

These are not R problems. They are OS problems!

like image 105
user3386237 Avatar answered Oct 01 '22 09:10

user3386237