Again, I have been instructed to compile some perl. The customer doesn't want the perl interpreter on the system.

Here are the results:

[PerlThreads]# perlcc -o sh2 sh2.pl In file included from /usr/lib/perl/5.8/CORE/perl.h:3950, from pccE2dTY.c:2: /usr/lib/perl/5.8/CORE/proto.h:31: warning: `warn_unused_result' attri +bute directive ignored ... lots of warnings... /usr/lib/perl/5.8/CORE/proto.h:2291: warning: `warn_unused_result' att +ribute directive ignored /usr/lib/perl/5.8/CORE/proto.h:2294: warning: `warn_unused_result' att +ribute directive ignored pccE2dTY.c: In function `perl_init_aaaa': pccE2dTY.c:3687: warning: this decimal constant is unsigned only in IS +O C90 /usr/bin/ld: cannot find -lperl collect2: ld returned 1 exit status [PerlThreads]#

Based upon the error message's library name ( -lperl; no .so) I surmise it is looking for a static library. Searching the system produces:

[PerlThreads]# find / -name "libperl*" /var/lib/dpkg/info/libperl5.8.list /var/lib/dpkg/info/libperl5.8.postinst /var/lib/dpkg/info/libperl5.8.md5sums /var/lib/dpkg/info/libperl5.8.shlibs /var/cache/apt/archives/libperl5.8_5.8.8-4_i386.deb /usr/lib/libperl.so.5.8 /usr/lib/libperl.so.5.8.8 /usr/share/doc/libperl5.8 /usr/share/defoma/libperl-file.pl /usr/share/defoma/libperl-hint.pl [PerlThreads]#

Shows 2 dynamic libraries, but not a static one. Is this an installation problem on my part? Do I need to CPAN something else to use the compiler?


In reply to perlcc can't find libperl by Wiggins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.