MATLAB: Do I receive an error when running OpenGL info under Linux

MATLAB

When I am running the following command in MATLAB on my Linux machine:
opengl info
I get the following error:
Warning: Could not access OpenGL library
> In opengl at 105

Best Answer

This issue can appear on some linux machines. To workaround it you can set the environment variable LD_LIBRARY_PATH:
LD_LIBRARY_PATH=$MATLABROOT/sys/opengl/lib/glnx86
where $MATLABROOT is the MATLAB root directory that may be determined by using the command:
matlabroot