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

**URL:** https://discourse.paraview.org/t/im-unable-to-run-pvserver-osmesa-it-fails-with-a-libglapi-so-0-error/16764
**Category:** FAQ
**Created:** [June 2, 2025, 2:34pm UTC](https://discourse.paraview.org/t/im-unable-to-run-pvserver-osmesa-it-fails-with-a-libglapi-so-0-error/16764 "2025-06-02T14:34:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 2, 2025, 2:34pm UTC](https://discourse.paraview.org/t/im-unable-to-run-pvserver-osmesa-it-fails-with-a-libglapi-so-0-error/16764/1 "2025-06-02T14:34:08Z")

</div>

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:

```auto
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`
