Error loading shared libraries: libpbs.so

Dear All,

I have successfully installed openpbs 20 on linux mint 21, but when I try to execute the qstat and pbsnode commands, there is an error.
The error is below:
qstat: error while loading shared libraries: libpbs.so.0: cannot open a shared object file: There is no such file or directory.

Does anyone have a problem like this?
If there is a solution to this error, I would be grateful.

Thank you very much.

Susilo

Hi @susilo , Have you found any fix ? I’m facing the same issue

Hi
Check the value of LD_LIBRARY_PATH i.e. run the command:
echo $LD_LIBRARY_PATH
This lib path should include the path to that library. If it does not then you can try to add it. I’m not using openpbs 20 but you first need to find that path to openpbs.so using “locate openpbs.so” or look up where it is in Ppenpbs.
Mike

an alternative way is to create a file named pbs.conf under /etc/ld.so.conf.d, note the path varies, please change it accordingly to your pbs real path (where libpbs.so located)

cat /etc/ld.so.conf.d/pbs.conf

/opt/pbs/default/lib

after run ldconfig to refresh cache. you dont need to set LD_LIBRARY_PATH after this