Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

perlcc gives "ld: fatal: library -ldb: not found"

by gman (Friar)
on May 10, 2001 at 16:59 UTC ( #79382=perlquestion: print w/ replies, xml ) Need Help??
gman has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm attempting to use perlcc and having problems. So I stepped back and created a simple hi.pl. Looking for a direction. Here is the result of
perlcc hi.pl Thanks in advance gman

perlcc hi.pl ---------------------------------------------------------------------- +---------- Compiling hi.pl: ---------------------------------------------------------------------- +---------- Making C(hi.pl.c) for hi.pl! /usr/local/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr +/local/lib/perl5/5.00503 -I/usr/local/lib/perl5/site_perl/5.005/sun4- +solaris -I/usr/local/lib/perl5/site_perl/5.005 -I. -MO=CC,-ohi.pl.c h +i.pl hi.pl syntax OK Compiling C(hi) for hi.pl! /usr/local/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr +/local/lib/perl5/5.00503 -I/usr/local/lib/perl5/site_perl/5.005/sun4- +solaris -I/usr/local/lib/perl5/site_perl/5.005 -I. /tmp/hi.pl.tst gcc -I/usr/local/include -O -I/usr/local/lib/perl5/5.00503/sun4-solari +s/CORE /usr/local/lib/perl5/5.00503/sun4-solaris/auto/Fcntl/Fcntl.so +-o hi hi.pl.c -L/usr/local/lib -L/usr/local/lib/perl5/5.00503/sun4-s +olaris/CORE -lperl -lsocket -lnsl -ldb -ldl -lm -lc -lcrypt ld: fatal: library -ldb: not found ld: fatal: File processing errors. No output written to hi collect2: ld returned 1 exit status ERROR: In compiling code for hi.pl.c !

Title edit by tye

Comment on perlcc gives "ld: fatal: library -ldb: not found"
Download Code
Re: perlcc
by Masem (Monsignor) on May 10, 2001 at 17:23 UTC
    This line:
    ld: fatal: library -ldb: not found
    tells me that your system (not just perl) is missing libdb.so, typically this comes with glibc/libc though I've seen it as a separate package for some distributions of Linux. Check your /usr/lib and /usr/local/lib for this library, and if not found, you should make sure it is installed for your particular platform.


    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
      Thanks for your quick response, I'm running solaris 2.6 with gcc compiler and perl 5.005_03 sun4-colaris. I could not find this lib file anywhere on any of the three solaris box's I have.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://79382]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-10-01 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (35 votes), past polls