Try adding the respective directory to the shared library search paths (which is independent of @INC), i.e.
$ LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.7/lib ./test.pl
If that works, you could either write a little wrapper to set LD_LIBRARY_PATH appropriately, or create a symlink to libdb-4.7.so from within a directory which already is on the list of lib directories searched by default (usually /usr/lib (or /usr/lib64), /usr/local/lib, etc. — in case of doubt, use strace -f -efile ./test.pl to find out which directories are being tried...)
(See the man page ld.so(8) for details on configuring the dynamic linker/loader)
In reply to Re: Perlfect search can't locate installed module DB_File.pm.
by almut
in thread Perlfect search can't locate installed module DB_File.pm.
by dbmathis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |