do you have the directory contianing the libraries in /etc/ld.so.conf and have you run ldconfig? otherwise, you could for ce the linker to look there, say if the lib is in /usr/lib/mozilla-1.7.5 you could:
and the library linker will search that directory. if you use this method though, it will have to be done at runtime too, so the dynamic linker can find the lib then also. it's better to have the directory in /etc/ld.so.conf and run ldconfig if you want it more hassle free.