This is from stable.tar.gz.
lcd 154# sh Configure -Dprefix=/usr/local/perl
I tried both gcc (3.0) and cc, taking all the defaults:
gcc:
I used the command:
/usr/local/bin/gcc -o try -O -fno-strict-aliasing -L/usr/local/lib
-lsocket -lnsl -ldb -ldl -lm -lc try.c
./try
and I got the following output:
ld.so.1: ./try: fatal: libdb-3.2.so: open failed: No such file or directory
Killed
The program compiled OK, but exited with status 137.
(The supplied flags or libraries might be incorrect.)
You have a problem. Shall I abort Configure [y]
-------------
cc:
I used the command:
/opt/SUNWspro/bin/cc -o try -O -I/usr/local/include -L/usr/local/lib
-L/opt/SUNWspro/WS6U2/lib -lsocket -lnsl -ldb -ldl -lm -lc try.c
./try
and I got the following output:
ld.so.1: ./try: fatal: libdb-3.2.so: open failed: No such file or directory
Killed
The program compiled OK, but exited with status 137.
(The supplied flags or libraries might be incorrect.)
-------------
lcd 147# which ld
/usr/ccs/bin/ld
---------------------
But the Berkeley db library DOES exist:
lcd 1775# ls -la /usr/local/lib/libdb.so
lrwxrwxrwx 1 root 38 Sep 17 16:07 /usr/local/lib/libdb.so ->
/usr/local/BerkeleyDB.3.2/lib/libdb.so
lcd 1776# file /usr/local/BerkeleyDB.3.2/lib/libdb.so
/usr/local/BerkeleyDB.3.2/lib/libdb.so: ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, not stripped
---------------
I've tried copying the libdb.so directly into /usr/local/lib, but got
the same error. Any suggestions appreciated.
Anne Hammond, University of Colorado at Boulder
Otherwise, anywhere it mentions -L/usr/local/lib in an option, retype the
entire line except for -L/usr/local/lib part and you shouldn't get these
errors.
- D