Let's say one of the libraries "ldd" can't find happens to be in /usr/local/lib. You'd do the following:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
That is, you'd concatenate the current $LD_LIBRARY_PATH value (if any) with the new item(s) you wish to add, each separated by a ":".
Alternatively, you could edit the system file /etc/ld.so.conf.
Here's more info:
http://www.tldp.org/HOWTO/Program-Li...libraries.html
'Hope that helps .. PSM