Hi all,

I have a compiled version of Perl (5.14.2 which works with compiled apache2 & mod_perl ok).

When I try and compile ImageMagick using the args --with-perl I get the error cannot find -lperl (After researching, I'm assuming this is libperl.so its after).

If I look for libperl.so I can only find the system installed version, and can only find libperl.a in the custom compiled Perl version (in /opt/perl).

This is where I get stuck in my understanding. Should I be compiling Perl differently to produce a .so file (I tried option -Duseshrplib for compiling perl, but problem persisted even though I can now see a .so) rather than .a, or should there be something in the ImageMagick compile options that would accept a .a. I sort of vaguely understand the idea of static vs shared libs, but not sure of any consequences or problems or solutions

Does anyone have any ideas how I could get ImageMagick to compile correctly with my non system version of Perl without it negatively affecting anything else ?

Thanks in advance

In reply to Compiling ImageMagick and Perl problem by Gib

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.