Vincent wrote:

As the HOWTO (http://www.dwheeler.com/program-library/Program-Library-HOWTO/index.html) instructs, I copied libfoo.so.1.0 in /usr/local/lib. Then run ldconfig –n /usr/local/lib creating symlink libfoo.so.1 to libfoo.so.1.0. Finally, I created linker name libfoo.so to point to libfoo.so.1

 

I also made sure that /usr/local/lib is included in /etc/ld.so.conf.

 

But when I tried to use the library, the app can’t find it, thus reporting: error while loading shared libraries: libfoo.so.1: cannot open shared object file: No such file or directory. ldd also says that the library can’t be found. Did I miss anything?

 

But If I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib, everything works fine.



try deleting the /etc/ld.so.cache
then again, issue the command "ldconfig"


HTH




--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to