Wednesday, September 30, 2015

3D Data visualization using R - configure: error: X11 not found but required. missing required header GL/gl.h

3D Data visualization using R

3D Data Visualization using R : Using the rgl package, rglplot plots a graph in 3D. The plot can be zoomed, rotated, shifted, etc. but the coordinates of the vertices is fixed.

Installing RGL package in R

install.packages("rgl")


Error

configure: using libpng-config configure: using libpng dynamic linkage checking for X... no configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package ‘rgl’ * removing ‘/home/bdalab/R/x86_64-pc-linux-gnu-library/3.1/rgl’ Warning in install.packages :
Solution

install
sudo apt-get install xorg
sudo apt-get install libx11-dev

then try again.
Error

In my case again I got
configure: error: missing required header GL/gl.h
Solution

install
sudo apt-get install libglu1-mesa-dev
then try again.

Next : RHadoop

2 comments:

Paulo Cezario said...

Thanks a lot!
For me was necessary try the last command.
I'm new in ubuntu and I dont know how do you do this.
Thanks again.

Unknown said...

Thanks...