What's the best way to add a directory to LD_LIBRARY_PATH?

view full story

http://askubuntu.com – 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. (HowTos)