configure: error: missing required library GL

configure: error: missing required library GL
ERROR: configuration failed for package ‘rgl’

rgl: 3D visualization device system (OpenGL)

SystemRequirements:
OpenGL, GLU Library, zlib (optional), libpng (>=1.2.9, optional), FreeType (optional)

Solution:
sudo yum install mesa-libGLU-devel mesa-libGLw-devel mesa-libgbm mesa-libGL mesa-libGL-devel libpng-devel libX11-devel
sudo R CMD INSTALL rgl_0.93.996.tar.gz

End results

** building package indices
** testing if installed package can be loaded
Warning in rgl.init(initValue, onlyNULL) :
  RGL: unable to open X11 display
Warning in fun(libname, pkgname) : error in rgl_init

* DONE (rgl)
Making packages.html  ... done

1 comment:

Please share your views and comments below.

Thank You.