Thursday, January 29, 2009

Fixing Error "cannot open shared object file: No such file or directory"

There are instances during our installation that a shared object, commonly on .so files, cannot be openned or located. To fix this issue here are the steps to take.

1. locate the .so or object file that cannot be opened

locate (objectname).so

Ex. locate libmp4.so

-you will get the path

/usr/local/lib/libmp4.so.0

2. Take note of its path

3. Open ld.so.conf, usually it is on /etc/ld.so.conf

vi /etc/ld.so.conf

4. Add at the end the path of the shared object

include ld.so.conf.d/*.conf
/usr/local/lib/

5. Save it then issue this command

/sbin/ldconfig

-- You're done

Hope you find this helpful. Thanks and God Bless!!!

No comments: