Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed an application in a non-standard place. When I run it I get

error while loading shared libraries: libthrift-0.9.0-dev.so: cannot open shared object file: No such file or directory

I can fix this by adding the directory to the environmental variable $LD_LIBRARY_PATH, but I wonder if there's a better solution.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you want this to be system-wide, you can add the directory to the ld.so configuration. This will make the dynamic linker always check that directory when looking for libraries to load.

To do this, just add a file in /etc/ld.so.conf.d/ (it should end in .conf), containing the full path of the directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.