Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does Perl module Crypt::SSLeay give an error upon loading?
    text
    copied!<p>I am trying to get WWW::Mechanize to login to Yahoo using https; however, it requires the use of Crypt::SSLeay for sending over https.</p> <p>Crypt::SSLeay installed succesfully, and openssl was already installed on the system.</p> <p>However, it gives the error upon loading:</p> <hr> <p><code> Can't load '/home/gen19/perl5/lib/perl5/lib/site_perl/5.10.1/i686-linux//auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /home/gen19/perl5/lib/perl5/lib/site_perl/5.10.1/i686-linux//auto/Crypt/SSLeay/SSLeay.so: undefined symbol: PL_sv_undef at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. at /home/gen19/lwp4 line 15 Compilation failed in require at /home/gen19/lwp4 line 15. BEGIN failed--compilation aborted at /home/gen19/lwp4 line 15. </code></p> <hr> <p>The installation of Crypt::SSLeay was successful, and could recognize the installation of openssl (here):</p> <pre><code>perl Makefile.PL ======================================================= Only one OpenSSL installation found at /usr Consider running 'perl Makefile.PL --default' the next time Crypt::SSLeay is upgraded to select this directory automatically thereby avoiding the following prompt. ======================================================= Which SSL install path do you want to use? [/usr] /home/gen19/ssldir BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8 in /home/gen19/ssldir ssl header: openssl/ssl.h libraries: -L/home/gen19/ssldir/lib -lssl -lcrypto -lgcc include dir: -I/home/gen19/ssldir/include/openssl -I/usr/kerberos/include ================================================ Note (probably harmless): No library found for -lgcc Writing Makefile for Crypt::SSLeay The test suite can attempt to connect to public servers to ensure that the code is working properly. If you are behind a strict firewall or have no network connectivity, these tests may fail (through no fault of the code). Do you want to run the live tests (y/N) ? [N] </code></pre> <hr> <p>NOTE: recently installed Perl v5.10.1 using App::perlbrew, due to LWP::UserAgent's needing it. I installed Crypt::SSLeay using my new version of Perl. </p> <p>I don't have root priveldiges, as I am doing this on a remote server at school. Please tell me why it's giving the error even though it installed succesfully. I know it has something to do with the shared libraries, but the installation recognized them.</p> <p>SIDE NOTE: my script works fine if I don't say "use Crypt::SSLeay;" at the start, but it gives the error when I use https that it's not a supported protocol, and needs LWP::protocol::https installed. Installing that always fails.</p> <p>EDIT: Thanks for your help, CJM. Apparently it was using the old version of Perl when I executed, but now I've fixed that.</p> <p>It doesn't give that error anymore; however, it still says</p> <pre><code>Error GETing https://login.yahoo.com/config/login_verify2?&amp;.src=ym: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) at lwp4 line 14 </code></pre> <p>I thought Crypt::SSLeay was supposed to take care of this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload