I have recently gone through a drill to resolve getting octave on rhel 7.1 to plot using gnuplot. Basically, I was getting the following ugly messages and no plot:
$ export LIBGL_DEBUG=verbose
$ octave
$ GNU Octave, version 3.8.2
octave:1> x = -10:0.1:10; plot(x, sin(x))
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast():
/usr/lib64/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/jsaari/.drirc: No such file or directory.
libGL: Can't open configuration file /home/jsaari/.drirc: No such file or directory.
libGL error: failed to load driver: swrast
function is no-op
function is no-op
function is no-op
. . .
Copyright Notice:Content Author:「Nufosmatic」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50934492/rhel-7-1-octave-gnuplot-resolving-libgl-error-failed-to-load-driver-swrast