Thai Heng has asked for the wisdom of the Perl Monks concerning the following question:

In order to install RT4.2, I install Net::SSL, but can't success. this is output: (Ubuntu Server12.04, perl 5.14.2)
sudo cpan install Net::SSL [sudo] password for hengaini: Going to read '/home/hengaini/.cpan/Metadata' Database was generated on Thu, 20 Feb 2014 09:41:02 GMT Running install for module 'Net::SSL' Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz Checksum for /home/hengaini/.cpan/sources/authors/id/N/NA/NANIS/Crypt- +SSLeay-0.64.tar.gz ok CPAN.pm: Going to build N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz 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 co +de). Do you want to run the live tests (y/N)? [N] y Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lssl32 Warning (mostly harmless): No library found for -lssleay32 Warning (mostly harmless): No library found for -leay32 Generating a Unix-style Makefile Writing Makefile for Crypt::SSLeay Writing MYMETA.yml and MYMETA.json cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm cp lib/Net/SSL.pm blib/lib/Net/SSL.pm cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.p +m cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm cp SSLeay.pm blib/lib/Crypt/SSLeay.pm cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm /usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/shar +e/perl/5.14/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc + && mv SSLeay.xsc SSLeay.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe + -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_O +FFSET_BITS=64 -O2 -g -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC + "-I/usr/lib/perl/5.14/CORE" SSLeay.c rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so LD_RUN_PATH="/lib/x86_64-linux-gnu" cc -shared -O2 -g -L/usr/local/li +b -fstack-protector SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.s +o \ -lz -lssl -lcrypto \ chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so /usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs bl +ib/arch/auto/Crypt/SSLeay/SSLeay.bs 644 Manifying blib/man3/Crypt::SSLeay.3pm Manifying blib/man3/Net::SSL.3pm NANIS/Crypt-SSLeay-0.64.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib +', 'blib/arch')" t/*.t t/00-basic.t .... ok t/01-connect.t .. 1/8 # Failed test 'Net::SSL->new' # at t/01-connect.t line 28. # Connect failed: connect: 拒绝连接; 拒& +#32477;连接 at t/01-connect.t line 11. # Looks like you failed 1 test of 8. t/01-connect.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/8 subtests (less 7 skipped subtests: 0 okay) t/02-live.t ..... # Reading configuration from 'test.config' on linux # network_tests : 1 t/02-live.t ..... 1/? # [RT #73755] Cheat by disabling LWP::UserAgent +host verification t/02-live.t ..... ok Test Summary Report ------------------- t/01-connect.t (Wstat: 256 Tests: 8 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=3, Tests=28, 2 wallclock secs ( 0.03 usr 0.00 sys + 0.53 cusr + 0.30 csys = 0.86 CPU) Result: FAIL Failed 1/3 test programs. 1/28 subtests failed. make: *** [test_dynamic] 错误 255 NANIS/Crypt-SSLeay-0.64.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports NANIS/Crypt-SSLeay-0.64.tar.gz Running make install make test had returned bad status, won't install without force
Thanks any response!

Replies are listed 'Best First'.
Re: Can't install Net::SSL
by kcott (Archbishop) on Feb 20, 2014 at 14:56 UTC

    G'day Thai Heng,

    The output you posted contains:

    ... 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 co +de). Do you want to run the live tests (y/N)? [N] y ... t/01-connect.t .. 1/8 # Failed test 'Net::SSL->new' # at t/01-connect.t line 28. # Connect failed: ... ... Result: FAIL Failed 1/3 test programs. 1/28 subtests failed. make: *** [test_dynamic] 错误 255 NANIS/Crypt-SSLeay-0.64.tar.gz /usr/bin/make test -- NOT OK ...

    The only test that failed appears to be the one you were warned about. Have you checked for firewall and connectivity issues? Perhaps you should have taken the default answer (i.e. N) for:

    Do you want to run the live tests (y/N)? [N]

    -- Ken

      'N' has the some function!
Re: Can't install Net::SSL
by Thai Heng (Beadle) on Feb 23, 2014 at 15:29 UTC

    I think this may be because No library found for -lssl32 or the output as follow:

    # Failed test 'Net::SSL->new' # at t/01-connect.t line 28. # Connect failed: connect: refused connection: at t/01-connect.t line +11.

    Can you help me ?

      Are the libssl headers installed on your machine? Maybe you need to install the appropriate (OpenSSL?) developer package to your system so that Net::SSL and your C compiler pick up the library headers.