# Error loading shared libraries: libpbs.so

**URL:** <https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414>\
**Category:** Users/Site Administrators\
**Created:** [January 11, 2023, 4:12pm UTC](https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414 "2023-01-11T16:12:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![susilo](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@susilo](https://community.openpbs.org/u/susilo)\
**Post date:** [January 11, 2023, 4:12pm UTC](https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414/1 "2023-01-11T16:12:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![belanasaikiran](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/belanasaikiran/32/626_2.png) [@belanasaikiran](https://community.openpbs.org/u/belanasaikiran)\
**Post date:** [January 27, 2023, 4:43am UTC](https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414/2 "2023-01-27T04:43:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![speleolinux](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@speleolinux](https://community.openpbs.org/u/speleolinux)\
**Post date:** [January 29, 2023, 10:49pm UTC](https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414/3 "2023-01-29T22:49:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Source](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/source/32/756_2.png) [@Source](https://community.openpbs.org/u/Source)\
**Post date:** [February 14, 2023, 3:38am UTC](https://community.openpbs.org/t/error-loading-shared-libraries-libpbs-so/3414/4 "2023-02-14T03:38:33Z")

</div>

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
