Mailing List Archive

Perl Compile problems - 5.001m
I was told that you could help me with this problem possibly
>
> I installed Perl 5 on a Digital Unix 3.2 system (Alpha hardware). I
installed every possible C or C++ library from the CD that I could find, and
I am still having problems with missing libraries. I have attached the error
message in hopes that you can maybe give me a hint on what library I might
be missing. I would appreciate any help that you can lend.


>*************************************************
>
>This is when doing a make -
>*******************************************************
>
>`sh cflags libperl.a deb.o` deb.c
> CCCMD = cc -c -DSTANDARD_C -O2 -Olimit 2900
>`sh cflags libperl.a globals.o` globals.c
> CCCMD = cc -c -DSTANDARD_C -O2 -Olimit 2900
>rm -f libperl.a
>ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o dump.o
util.o mg.o hv.o av.o
> run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o
taint.o deb.o global
>s.o
>s - creating symbol hash table. Wait...
>cc -o miniperl miniperlmain.o libperl.a -ldbm -ldl -lm -lc -lbsd -lPW
>ld:
>Can't locate file for: -ldl
>*** Exit 1
>Stop.
>
Perl Compile problems - 5.001m [ In reply to ]
>>>>> "Karen" == Karen M Crane <kmcrane@southwind.net> writes:

Karen> I installed Perl 5 on a Digital Unix 3.2 system (Alpha
Karen> hardware). I installed every possible C or C++ library from
Karen> the CD that I could find, and I am still having problems with
Karen> missing libraries. I have attached the error message in hopes
Karen> that you can maybe give me a hint on what library I might be
Karen> missing. I would appreciate any help that you can lend.

From the look of it, you're not simply doing './Configure -des' when
you try to compile perl5 on your system. Are you adding the -ldl
library yourself when go through Configure? What you should do is:

rm config.sh
./Configure -des

See the README and INSTALL files for more on how to specify where to
install perl5 if you don't like the default
/usr/local/[lib,bin]/... locations.

>> cc -o miniperl miniperlmain.o libperl.a -ldbm -ldl -lm -lc -lbsd -lPW
>> ld:
>> Can't locate file for: -ldl
>> *** Exit 1
>> Stop.

When I compile perl5 on my 3.2A system, I don't get any request of the
-ldl library, so I'm not sure where Configure is getting this from.
Let me know if this works or not and I'll see what else I can do to
help.

John

John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
Kill your television