such - ubuntu rgl install
How to solve the error “ missing required header GL/gl.h” while installing the Package mvoutlier in R? (4)
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.
Based on the work breakdown by 3manuek, I figured only the libglu1-mesa-dev library was needed in ubuntu 16.04 LTS, and it worked.
I ran into the same issue in between others on a Ubuntu based Linux distro (Linux Mint). Here I will share the worklog I'd done to fix it.
The full fix was:
apt-get install libx11-dev mesa-common-dev libglu1-mesa-dev
The first error was related to missing devel libraries of X11:
configure: error: X11 not found but required, configure aborted.
I fixed it installing:
apt-get install libx11-dev
However, after fix the issue, I felt into a new one like this one:
configure: error: missing required header GL/gl.h
ERROR: configuration failed for package ‘rgl’
I checked the library on the repository:
# dpkg -S /usr/include/GL/gl.h
dpkg-query: no path found matching pattern /usr/include/GL/gl.h
To fix this issue, install :
apt-get install mesa-common-dev
Then, I was prompt by a new error:
configure: error: missing required header GL/glu.h
To fix the issue, install the libglu1 devel libraries:
apt-get install libglu1-mesa-dev
On Ubuntu 16.04, I solved this problem (during
rgl package installation) with
sudo apt-get install libglu1-mesa-dev
the current fedora package manager will fail to find these libraries as shown. Instead you need to do
sudo dnf install mesa-libGL-devel mesa-libGLU-devel