in reply to Perlfect search can't locate installed module DB_File.pm.
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perlfect search can't locate installed module DB_File.pm.
by dbmathis (Scribe) on Jun 26, 2008 at 17:32 UTC | |
by almut (Canon) on Jun 26, 2008 at 17:49 UTC | |
by Anonymous Monk on Mar 29, 2011 at 15:12 UTC | |
by Anonymous Monk on Mar 29, 2011 at 15:39 UTC |