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

Hi. I'm trying to install Crypt::SSLeay on my mac (OS X version 10.4.10) so that I can open https addresses. I'm having a bit of problem installing. I fail all tests when running make test. Here's what I get after running Makefile.PL:


----------------------
dgest2:/Users/matlaw/Desktop/Crypt-SSLeay-0.56 root# perl Makefile.PL
Found multiple possibilities for OpenSSL
/usr/local/ssl (OpenSSL 0.9.8)
/usr (OpenSSL 0.9.7)
Which SSL install path do you want to use? /usr/local/ssl

BUILD INFORMATION
================================================
ssl library: OpenSSL 0.9.8 in /usr/local/ssl
ssl header: openssl/ssl.h
libraries: -L/usr/local/ssl/lib -lssl -lcrypto -lgcc
include dir: -I/usr/local/ssl/include/openssl
================================================
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

-------------------------

Then, after this I run make with the following output:

-------------------------

dgest2:/Users/matlaw/Desktop/Crypt-SSLeay-0.56 root# make
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.6/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c -I/usr/local/ssl/include/openssl -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"0.56\" -DXS_VERSION=\"0.56\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" SSLeay.c
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.bundle -L/usr/local/ssl/lib -lssl -lcrypto -lgcc /usr/bin/ld: warning -L: directory name (/usr/local/lib) does not exist
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.bundle
cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs
chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs
Manifying blib/man3/Net::SSL.3pm
Manifying blib/man3/Crypt::SSLeay.3pm

----------------------
And then I run make test with the following result:

----------------------
dgest2:/Users/matlaw/Desktop/Crypt-SSLeay-0.56 root# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic......NOK 7/12
# Failed test 'use Net::SSL;'
# in t/00-basic.t at line 12.
# Tried to use 'Net::SSL'.
# Error: MIME::Base64 object version 3.05 does not match bootstrap parameter 3.07 at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/XSLoader.pm line 92.
# Compilation failed in require at /Users/matlaw/Desktop/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 4.
# BEGIN failed--compilation aborted at t/00-basic.t line 12.
# Compilation failed in require at (eval 9) line 2.
# BEGIN failed--compilation aborted at (eval 9) line 2.
# Looks like you failed 1 test of 12.
t/00-basic......dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 7
Failed 1/12 tests, 91.67% okay (less 4 skipped tests: 7 okay, 58.33%)
t/01-connect....MIME::Base64 object version 3.05 does not match bootstrap parameter 3.07 at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/XSLoader.pm line 92.
Compilation failed in require at /Users/matlaw/Desktop/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 4.
BEGIN failed--compilation aborted at /Users/matlaw/Desktop/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 4.
Compilation failed in require at t/01-connect.t line 4. BEGIN failed--compilation aborted at t/01-connect.t line 4.
# Looks like your test died before it could output anything. t/01-connect....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-8<br. Failed 8/8 tests, 0.00% okay
t/02-live.......NOK 1/4
# Failed test 'use Net::SSL;'
# in t/02-live.t at line 7.
# Tried to use 'Net::SSL'.
# Error: MIME::Base64 object version 3.05 does not match bootstrap parameter 3.07 at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/XSLoader.pm line 92.
# Compilation failed in require at /Users/matlaw/Desktop/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 4.
# BEGIN failed--compilation aborted at t/02-live.t line 7.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
# config on darwin
# ssl OpenSSL 0.9.8 in /usr/local/ssl
# lib -L/usr/local/ssl/lib -lssl -lcrypto -lgcc
# inc -I/usr/local/ssl/include/openssl
# cc cc
Undefined subroutine &Net::SSL::send_useragent_to_proxy called at t/02-live.t line 57.
# Looks like you planned 4 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/02-live.......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/00-basic.t 1 256 12 1 7
t/01-connect.t 255 65280 8 16 1-8
t/02-live.t 255 65280 4 7 1-4
4 subtests skipped.
Failed 3/3 test scripts. 13/24 subtests failed.
Files=3, Tests=24, 1 wallclock secs ( 0.32 cusr + 0.10 csys = 0.42 CPU)
Failed 3/3 test programs. 13/24 subtests failed.
make: *** test_dynamic Error 255

----------------------

Any ideas what's going wrong?


Thanks,

Matthew

Replies are listed 'Best First'.
Re: trouble installing Crypt::SSLeay
by syphilis (Archbishop) on Jul 14, 2007 at 07:14 UTC
    Hi matlaw,

    For one thing (and this might be the only problem) there's a problem with MIME::Base64. Version 3.07 of Base64.pm is being found, but the version of Base64.so is 3.05 (which would typically indicate a botched attempt at installing MIME::Base64).

    You need to have the same version numbers of Base64.pm and Base64.so. A proper and successful re-installation of MIME::Base64 will take care of that.

    Cheers,
    Rob
      Rob - you were correct! I re-installed MIME::Base64 and now I can install Crypt::SSLeay no problem and it even works connecting with https sites! Thanks so much, Matthew