Hi, I have two Perl version/instance of Perl, now my cgi is dependent on a module(Net::LDAPS) that provided by Perl instance that's not the installed by default on the OS. I tried to add that Perl version on PER5LIB, as well as put on it script itself using BEGIN but still having the error, now I'm seeking for the wisdom of those who have trodden this path.

Built under solaris Compiled at May 21 2009 03:59:02 %ENV: PERL5LIB="/usr/local/lib/perl5/site_perl/5.8.6" @INC: /usr/local/lib/perl5/site_perl/5.8.6 /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .
BEGIN { push @INC, "/usr/local/lib/perl5/site_perl/5.8.6"; } BEGIN { push @INC, "/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris- +thread-multi"; } use CGI qw(:standard); use Net::LDAPS;

here's the error: [Tue Mar 13 15:21:51 2012] [error] [client xxxx] ld.so.1: perl: fatal: + relocation error: file /usr/local/lib/perl5/site_perl/5.8.6/sun4-sol +aris-thread-multi/auto/Net/SSLeay/SSLeay.so: symbol Perl_Gthr_key_ptr +: referenced symbol not found,

This is now solved, as suggested on serverfault I need to replace the perl binary hash bang #!/path_of_desired/perl line to the script.


In reply to Apache + CGI with 2 Perl instance by jt_exist

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.