Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #17393] perl-5.8.0 on Solaris 8

0 views
Skip to first unread message

Anne M. Hammond

unread,
Sep 17, 2002, 6:19:57 PM9/17/02
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by "Anne M. Hammond"
# Please include the string: [perl #17393]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17393 >


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


David M. Lloyd

unread,
Sep 17, 2002, 6:24:49 PM9/17/02
to perl5-...@perl.org, bugs-bi...@netlabs.develooper.com, Robert Spier
If you include -L/usr/local/lib you need to make sure that /usr/local/lib
is in your LD_LIBRARY_PATH.

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

<dml...@tds.net>

0 new messages