libGL.so.1 missing

The problem

When trying to start a gui application like gvim, you get an error message:

levante6:~$ gvim
Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory

A probable reason

Your system does not support openGL forwarding over X11, and levante does not have the backup openGL library in its library path.

How to mitigate

Load the mesa openGL library on levante:

spack load mesa
gvim