I'm unable to run pvserver osmesa, it fails with a libglapi.so.0 error

There is an issue in older ParaView osmesa binary release that causes it to rely on system libglapi.so.0 instead of using the one provided in the package.

If this file is not present on your system, you may encounter:

error while loading shared libraries: libglapi.so.0: cannot open shared object file: No such file or directory

The fix is simple, run pvserver like this:

LD_PRELOAD=./lib/mesa/libglapi.so.0 ./bin/pvserver