msk_0984 has asked for the wisdom of the Perl Monks concerning the following question:
Its great to use Net::SSH2 module which has really made our work easier over Net::SSH::Perl module.
I was working with Net::SSH2 perl module. I wrote a small script that logs into remote systems and fetch its hostname and it went fine.
Now when I have embedded same script in a CGI page, I was giving me the following error in /var/apache/logs/error_logs file
Can't load '/opt/ActivePerl-5.8/site/lib/auto/Net/SSH2/SSH2.so' for mo +dule Net::SSH2: ld.so.1: perl-static: fatal: libcrypto.so.0.9.8: open + failed: No such file or directory at /opt/ActivePerl-5.8/lib/XSLoade +r.pm line 70. at /opt/ActivePerl-5.8/site/lib/Net/SSH2.pm line 467 Compilation failed in require at /var/apache/cgi-bin/ssh_WebAdmin/test +.cgi line 4. BEGIN failed--compilation aborted at /var/apache/cgi-bin/ssh_WebAdmin/ +test.cgi line 4.
All the files ld.so.1 , libcrypto.so.0.9.8 are present in the respective locations. But i dont uderstand what is the problem when I embedded the script in CGI.
Even if I execute and check for any errors by using
And when opened in browser I get$ perl -wc test.cgi test.cgi syntax OK
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Net::SSH2 when using with CGI programing
by mr_mischief (Monsignor) on Sep 12, 2007 at 19:46 UTC | |
by msk_0984 (Friar) on Sep 13, 2007 at 10:34 UTC |