Shared libraries on Ubuntu

The other day I installed a bioinformatics software package called EMBOSS on my machine (Ubuntu 10.04). I did the canonical ./configure; make; sudo make install and didn’t see any errors. However, when I actually tried to use the software I ran into issues.

/usr/local/bin/getorf: error while loading shared libraries: cannot open shared object file: No such file or directory

I checked, and this file did indeed exist, both in the installation directory and in /usr/local/lib. When I added this directory to the library path, the errors went away. However, the library path is intended for testing new libraries and can lead to problems if you rely on it long-term.

I eventually found a solution with the command ldconfig. First, I opened up the file at /etc/ and added a line for /usr/local/lib. Then I ran ldconfig as root and the errors went away! I could get the program to recognize the libraries without relying on the library path.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s