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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |