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

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 Looking for a direction. Here is the result of
perlcc Thanks in advance gman

perlcc ---------------------------------------------------------------------- +---------- Compiling ---------------------------------------------------------------------- +---------- Making C( for! /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, h syntax OK Compiling C(hi) for! /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/ 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/ +-o hi -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 !

Title edit by tye

Replies are listed 'Best First'.
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, 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 - || "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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://79382]
Approved by root
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-02-28 00:49 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (394 votes). Check out past polls.