Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: How to install Net::SSLeay with perlbrew on a Mac?

by karlgoethebier (Abbot)
on Jul 28, 2021 at 17:32 UTC ( #11135440=note: print w/replies, xml ) Need Help??


in reply to Re: How to install Net::SSLeay with perlbrew on a Mac?
in thread How to install Net::SSLeay with perlbrew on a Mac?

Hi stevieb, thanks for your kind reply.

Here is what happens when i fire up cpanm:

cpanm (App::cpanminus) 1.7044 on perl 5.034000 built for darwin-thread +-multi-2level Work directory is /Users/karl/.cpanm/work/1627490843.15541 You have make /usr/bin/make You have /usr/local/bin/curl You have /usr/bin/tar: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 lib +lzma/5.0.5 bz2lib/1.0.6 You have /usr/bin/unzip Searching Net::SSLeay () on cpanmetadb ... % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--: +-- 0 100 121 100 121 0 0 1890 0 --:--:-- --:--:-- --:--: +-- 1890 --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.90.ta +r.gz ... ###################################################################### +#################################################################### +100,0% Unpacking Net-SSLeay-1.90.tar.gz OK x Net-SSLeay-1.90/ x Net-SSLeay-1.90/lib/ x Net-SSLeay-1.90/lib/Net/ x Net-SSLeay-1.90/lib/Net/SSLeay/ x Net-SSLeay-1.90/lib/Net/SSLeay/Handle.pm x Net-SSLeay-1.90/lib/Net/SSLeay.pm x Net-SSLeay-1.90/lib/Net/SSLeay.pod x Net-SSLeay-1.90/LICENSE x Net-SSLeay-1.90/README.VMS x Net-SSLeay-1.90/README.OSX x Net-SSLeay-1.90/META.yml x Net-SSLeay-1.90/typemap x Net-SSLeay-1.90/ppport.h x Net-SSLeay-1.90/README x Net-SSLeay-1.90/QuickRef x Net-SSLeay-1.90/helper_script/ x Net-SSLeay-1.90/helper_script/generate-test-pki x Net-SSLeay-1.90/helper_script/regen_openssl_constants.pl x Net-SSLeay-1.90/helper_script/pki.cfg x Net-SSLeay-1.90/Credits x Net-SSLeay-1.90/MANIFEST x Net-SSLeay-1.90/inc/ x Net-SSLeay-1.90/inc/Test/ x Net-SSLeay-1.90/inc/Test/Net/ x Net-SSLeay-1.90/inc/Test/Net/SSLeay/ x Net-SSLeay-1.90/inc/Test/Net/SSLeay/Socket.pm x Net-SSLeay-1.90/inc/Test/Net/SSLeay.pm x Net-SSLeay-1.90/examples/ x Net-SSLeay-1.90/examples/cb-testi.pl x Net-SSLeay-1.90/examples/callback.pl x Net-SSLeay-1.90/examples/ssl_diff.pl x Net-SSLeay-1.90/examples/sslcat.pl x Net-SSLeay-1.90/examples/https-proxy-snif.pl x Net-SSLeay-1.90/examples/get_page_cert.pl x Net-SSLeay-1.90/examples/passwd-cb.pl x Net-SSLeay-1.90/examples/minicli.pl x Net-SSLeay-1.90/examples/sslecho.pl x Net-SSLeay-1.90/examples/makecert.pl x Net-SSLeay-1.90/examples/server_key.pem x Net-SSLeay-1.90/examples/tcpecho.pl x Net-SSLeay-1.90/examples/x509_cert_details.pl x Net-SSLeay-1.90/examples/get_page.pl x Net-SSLeay-1.90/examples/stdio_bulk.pl x Net-SSLeay-1.90/examples/req.conf x Net-SSLeay-1.90/examples/cli-cert.pl x Net-SSLeay-1.90/examples/tcpcat.pl x Net-SSLeay-1.90/examples/bulk.pl x Net-SSLeay-1.90/examples/get_authenticated_page.pl x Net-SSLeay-1.90/examples/ephemeral.pl x Net-SSLeay-1.90/examples/bio.pl x Net-SSLeay-1.90/examples/ssl-inetd-serv.pl x Net-SSLeay-1.90/README.Win32 x Net-SSLeay-1.90/SSLeay.xs x Net-SSLeay-1.90/constants.c x Net-SSLeay-1.90/META.json x Net-SSLeay-1.90/t/ x Net-SSLeay-1.90/t/external/ x Net-SSLeay-1.90/t/external/ocsp.t x Net-SSLeay-1.90/t/local/ x Net-SSLeay-1.90/t/local/21_constants.t x Net-SSLeay-1.90/t/local/11_read.t x Net-SSLeay-1.90/t/local/65_ticket_sharing_2.t x Net-SSLeay-1.90/t/local/06_tcpecho.t x Net-SSLeay-1.90/t/local/03_use.t x Net-SSLeay-1.90/t/local/61_threads-cb-crash.t x Net-SSLeay-1.90/t/local/38_priv-key.t x Net-SSLeay-1.90/t/local/41_alpn_support.t x Net-SSLeay-1.90/t/local/34_x509_crl.t x Net-SSLeay-1.90/t/local/09_ctx_new.t x Net-SSLeay-1.90/t/local/40_npn_support.t x Net-SSLeay-1.90/t/local/42_info_callback.t x Net-SSLeay-1.90/t/local/50_digest.t x Net-SSLeay-1.90/t/local/45_exporter.t x Net-SSLeay-1.90/t/local/04_basic.t x Net-SSLeay-1.90/t/local/07_sslecho.t x Net-SSLeay-1.90/t/local/62_threads-ctx_new-deadlock.t x Net-SSLeay-1.90/t/local/10_rand.t x Net-SSLeay-1.90/t/local/31_rsa_generate_key.t x Net-SSLeay-1.90/t/local/kwalitee.t x Net-SSLeay-1.90/t/local/08_pipe.t x Net-SSLeay-1.90/t/local/32_x509_get_cert_info.t x Net-SSLeay-1.90/t/local/15_bio.t x Net-SSLeay-1.90/t/local/33_x509_create_cert.t x Net-SSLeay-1.90/t/local/02_pod_coverage.t x Net-SSLeay-1.90/t/local/37_asn1_time.t x Net-SSLeay-1.90/t/local/35_ephemeral.t x Net-SSLeay-1.90/t/local/01_pod.t x Net-SSLeay-1.90/t/local/20_autoload.t x Net-SSLeay-1.90/t/local/43_misc_functions.t x Net-SSLeay-1.90/t/local/39_pkcs12.t x Net-SSLeay-1.90/t/local/44_sess.t x Net-SSLeay-1.90/t/local/36_verify.t x Net-SSLeay-1.90/t/local/05_passwd_cb.t x Net-SSLeay-1.90/t/local/66_curves.t x Net-SSLeay-1.90/t/local/30_error.t x Net-SSLeay-1.90/t/local/65_security_level.t x Net-SSLeay-1.90/t/local/64_ticket_sharing.t x Net-SSLeay-1.90/t/local/63_ec_key_generate_key.t x Net-SSLeay-1.90/t/data/ x Net-SSLeay-1.90/t/data/wildcard-cert.csr.der x Net-SSLeay-1.90/t/data/intermediate-ca.certchain.enc.p12 x Net-SSLeay-1.90/t/data/verify-cert.csr.der x Net-SSLeay-1.90/t/data/extended-cert.certchain.p12 x Net-SSLeay-1.90/t/data/intermediate-ca.csr.der x Net-SSLeay-1.90/t/data/extended-cert.cert.pem x Net-SSLeay-1.90/t/data/simple-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/simple-cert.certchain.pem x Net-SSLeay-1.90/t/data/verify-ca.cert.dump x Net-SSLeay-1.90/t/data/revoked-cert.csr.der x Net-SSLeay-1.90/t/data/intermediate-ca.key.enc.pem x Net-SSLeay-1.90/t/data/revoked-cert.key.pem x Net-SSLeay-1.90/t/data/root-ca.key.der x Net-SSLeay-1.90/t/data/verify-ca.key.der x Net-SSLeay-1.90/t/data/verify-ca.p12 x Net-SSLeay-1.90/t/data/revoked-cert.certchain.p12 x Net-SSLeay-1.90/t/data/simple-cert.cert.dump x Net-SSLeay-1.90/t/data/intermediate-ca.certchain.p12 x Net-SSLeay-1.90/t/data/strange-cert.enc.p12 x Net-SSLeay-1.90/t/data/verify-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/intermediate-ca.p12 x Net-SSLeay-1.90/t/data/extended-cert.cert.dump x Net-SSLeay-1.90/t/data/verify-ca.enc.p12 x Net-SSLeay-1.90/t/data/extended-cert.key.enc.pem x Net-SSLeay-1.90/t/data/strange-cert.csr.der x Net-SSLeay-1.90/t/data/revoked-cert.key.enc.pem x Net-SSLeay-1.90/t/data/revoked-cert.certchain.der x Net-SSLeay-1.90/t/data/binary-test.file x Net-SSLeay-1.90/t/data/simple-cert.key.der x Net-SSLeay-1.90/t/data/intermediate-ca.key.der x Net-SSLeay-1.90/t/data/simple-cert.cert.der x Net-SSLeay-1.90/t/data/verify-cert.enc.p12 x Net-SSLeay-1.90/t/data/simple-cert.key.enc.der x Net-SSLeay-1.90/t/data/strange-cert.csr.pem x Net-SSLeay-1.90/t/data/simple-cert.certchain.der x Net-SSLeay-1.90/t/data/simple-cert.p12 x Net-SSLeay-1.90/t/data/revoked-cert.key.der x Net-SSLeay-1.90/t/data/extended-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/wildcard-cert.enc.p12 x Net-SSLeay-1.90/t/data/extended-cert.certchain.der x Net-SSLeay-1.90/t/data/intermediate-ca.cert.pem x Net-SSLeay-1.90/t/data/verify-ca.csr.der x Net-SSLeay-1.90/t/data/strange-cert.cert.der x Net-SSLeay-1.90/t/data/verify-ca.certchain.pem x Net-SSLeay-1.90/t/data/root-ca.enc.p12 x Net-SSLeay-1.90/t/data/root-ca.cert.pem x Net-SSLeay-1.90/t/data/verify-ca.key.enc.der x Net-SSLeay-1.90/t/data/wildcard-cert.key.pem x Net-SSLeay-1.90/t/data/intermediate-ca.enc.p12 x Net-SSLeay-1.90/t/data/verify-cert.key.der x Net-SSLeay-1.90/t/data/verify-cert.cert.dump x Net-SSLeay-1.90/t/data/strange-cert.key.enc.pem x Net-SSLeay-1.90/t/data/strange-cert.cert.pem x Net-SSLeay-1.90/t/data/intermediate-ca.cert.der x Net-SSLeay-1.90/t/data/root-ca.key.enc.pem x Net-SSLeay-1.90/t/data/strange-cert.key.pem x Net-SSLeay-1.90/t/data/extended-cert.key.der x Net-SSLeay-1.90/t/data/root-ca.p12 x Net-SSLeay-1.90/t/data/extended-cert.csr.pem x Net-SSLeay-1.90/t/data/simple-cert.csr.pem x Net-SSLeay-1.90/t/data/root-ca.certchain.pem x Net-SSLeay-1.90/t/data/simple-cert.key.enc.pem x Net-SSLeay-1.90/t/data/intermediate-ca.csr.pem x Net-SSLeay-1.90/t/data/revoked-cert.cert.der x Net-SSLeay-1.90/t/data/verify-cert.p12 x Net-SSLeay-1.90/t/data/wildcard-cert.certchain.p12 x Net-SSLeay-1.90/t/data/extended-cert.csr.der x Net-SSLeay-1.90/t/data/revoked-cert.certchain.pem x Net-SSLeay-1.90/t/data/intermediate-ca.key.pem x Net-SSLeay-1.90/t/data/strange-cert.key.enc.der x Net-SSLeay-1.90/t/data/verify-cert.certchain.p12 x Net-SSLeay-1.90/t/data/intermediate-ca.crl.der x Net-SSLeay-1.90/t/data/root-ca.cert.dump x Net-SSLeay-1.90/t/data/intermediate-ca.key.enc.der x Net-SSLeay-1.90/t/data/strange-cert.certchain.p12 x Net-SSLeay-1.90/t/data/root-ca.csr.der x Net-SSLeay-1.90/t/data/wildcard-cert.key.der x Net-SSLeay-1.90/t/data/verify-cert.csr.pem x Net-SSLeay-1.90/t/data/revoked-cert.csr.pem x Net-SSLeay-1.90/t/data/root-ca.certchain.enc.p12 x Net-SSLeay-1.90/t/data/verify-ca.certchain.der x Net-SSLeay-1.90/t/data/root-ca.cert.der x Net-SSLeay-1.90/t/data/revoked-cert.cert.pem x Net-SSLeay-1.90/t/data/root-ca.csr.pem x Net-SSLeay-1.90/t/data/strange-cert.certchain.pem x Net-SSLeay-1.90/t/data/strange-cert.certchain.der x Net-SSLeay-1.90/t/data/simple-cert.enc.p12 x Net-SSLeay-1.90/t/data/strange-cert.p12 x Net-SSLeay-1.90/t/data/extended-cert.key.enc.der x Net-SSLeay-1.90/t/data/root-ca.key.enc.der x Net-SSLeay-1.90/t/data/intermediate-ca.certchain.der x Net-SSLeay-1.90/t/data/wildcard-cert.cert.dump x Net-SSLeay-1.90/t/data/verify-cert.certchain.der x Net-SSLeay-1.90/t/data/verify-cert.key.enc.pem x Net-SSLeay-1.90/t/data/revoked-cert.enc.p12 x Net-SSLeay-1.90/t/data/root-ca.key.pem x Net-SSLeay-1.90/t/data/verify-ca.certchain.enc.p12 x Net-SSLeay-1.90/t/data/extended-cert.enc.p12 x Net-SSLeay-1.90/t/data/verify-cert.key.enc.der x Net-SSLeay-1.90/t/data/verify-cert.key.pem x Net-SSLeay-1.90/t/data/verify-ca.key.enc.pem x Net-SSLeay-1.90/t/data/wildcard-cert.p12 x Net-SSLeay-1.90/t/data/verify-cert.certchain.pem x Net-SSLeay-1.90/t/data/revoked-cert.cert.dump x Net-SSLeay-1.90/t/data/simple-cert.csr.der x Net-SSLeay-1.90/t/data/verify-ca.csr.pem x Net-SSLeay-1.90/t/data/intermediate-ca.cert.dump x Net-SSLeay-1.90/t/data/verify-cert.cert.der x Net-SSLeay-1.90/t/data/simple-cert.cert.pem x Net-SSLeay-1.90/t/data/intermediate-ca.crl.pem x Net-SSLeay-1.90/t/data/intermediate-ca.certchain.pem x Net-SSLeay-1.90/t/data/wildcard-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/revoked-cert.key.enc.der x Net-SSLeay-1.90/t/data/extended-cert.p12 x Net-SSLeay-1.90/t/data/wildcard-cert.key.enc.der x Net-SSLeay-1.90/t/data/root-ca.certchain.der x Net-SSLeay-1.90/t/data/verify-ca.cert.pem x Net-SSLeay-1.90/t/data/simple-cert.key.pem x Net-SSLeay-1.90/t/data/verify-cert.cert.pem x Net-SSLeay-1.90/t/data/verify-ca.certchain.p12 x Net-SSLeay-1.90/t/data/revoked-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/wildcard-cert.certchain.der x Net-SSLeay-1.90/t/data/extended-cert.cert.der x Net-SSLeay-1.90/t/data/wildcard-cert.certchain.pem x Net-SSLeay-1.90/t/data/extended-cert.certchain.pem x Net-SSLeay-1.90/t/data/extended-cert.key.pem x Net-SSLeay-1.90/t/data/wildcard-cert.csr.pem x Net-SSLeay-1.90/t/data/wildcard-cert.key.enc.pem x Net-SSLeay-1.90/t/data/wildcard-cert.cert.pem x Net-SSLeay-1.90/t/data/verify-ca.cert.der x Net-SSLeay-1.90/t/data/wildcard-cert.cert.der x Net-SSLeay-1.90/t/data/strange-cert.cert.dump x Net-SSLeay-1.90/t/data/root-ca.certchain.p12 x Net-SSLeay-1.90/t/data/strange-cert.key.der x Net-SSLeay-1.90/t/data/revoked-cert.p12 x Net-SSLeay-1.90/t/data/verify-ca.key.pem x Net-SSLeay-1.90/t/data/strange-cert.certchain.enc.p12 x Net-SSLeay-1.90/t/data/simple-cert.certchain.p12 x Net-SSLeay-1.90/t/handle/ x Net-SSLeay-1.90/t/handle/external/ x Net-SSLeay-1.90/t/handle/external/10_destroy.t x Net-SSLeay-1.90/t/handle/external/50_external.t x Net-SSLeay-1.90/t/handle/local/ x Net-SSLeay-1.90/t/handle/local/05_use.t x Net-SSLeay-1.90/CONTRIBUTING.md x Net-SSLeay-1.90/Changes x Net-SSLeay-1.90/Makefile.PL Entering Net-SSLeay-1.90 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.62) Running Makefile.PL Configuring Net-SSLeay-1.90 ... Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] + n *** Found LibreSSL-2.8.3 installed in /usr *** Be sure to use the same compiler and options to compile your OpenS +SL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Checking if your kit is complete... Looks good WARNING: /Users/karl/perl5/perlbrew/perls/perl-5.34.0-threads/bin/perl + is loading libcrypto in an unsafe way ! Configure failed for Net-SSLeay-1.90. See /Users/karl/.cpanm/work/16 +27490843.15541/build.log for details. N/A

And here is this bloody log:

cpanm (App::cpanminus) 1.7044 on perl 5.034000 built for darwin-thread +-multi-2level Work directory is /Users/karl/.cpanm/work/1627490843.15541 You have make /usr/bin/make You have /usr/local/bin/curl You have /usr/bin/tar: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 lib +lzma/5.0.5 bz2lib/1.0.6 You have /usr/bin/unzip Searching Net::SSLeay () on cpanmetadb ... --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.90.ta +r.gz -> OK Unpacking Net-SSLeay-1.90.tar.gz Entering Net-SSLeay-1.90 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.62) Configuring Net-SSLeay-1.90 Running Makefile.PL -> N/A -> FAIL Configure failed for Net-SSLeay-1.90. See /Users/karl/.cpanm/w +ork/1627490843.15541/build.log for details.

In the thread on crackoverflow i linked to someone made some strange suggestions how to change the environment etc. And even brian_d_foy had no idea except RTFM.

Making changes to my beloved Perl environment just because of guessing i consider as harmful.

Probably it is so that i miss something essential. Or I have overseen something which is totally obvious. I don't know and have no plan.

The background is that i wanted to install FFI::Platypus which for some reasons that i don't understand yet requires Net::SSLeay.

Thanks for any hint and advice.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: How to install Net::SSLeay with perlbrew on a Mac?
by hippo (Bishop) on Jul 28, 2021 at 20:19 UTC
      "Are you sure...?"

      No. But please see my reply to stevieb below. Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Re^3: How to install Net::SSLeay with perlbrew on a Mac?
by stevieb (Canon) on Jul 28, 2021 at 23:16 UTC

    I think hippo might be right, that Net::SSLeay isn't necessary. Observe:

    steve@cecilia ~/scratch $ perl -v This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-2l +evel

    cpanm FFI::Platypus output:

    steve@cecilia ~/scratch $ cpanm FFI::Platypus --> Working on FFI::Platypus Fetching http://www.cpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-1.5 +3.tar.gz ... OK Configuring FFI-Platypus-1.53 ... OK ==> Found dependencies: FFI::CheckLib, Alien::FFI, Test2::V0 ... snipped for brevity ... Successfully installed FFI-Platypus-1.53 16 distributions installed
      "...Observe..."

      Here is what i observed:

      Karls-Mac-mini:Yaph karl$ perl -v This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-th +read-multi-2level ################# Karls-Mac-mini:Yaph karl$ cpanm FFI::Platypus --> Working on FFI::Platypus # ... snipped for brevity ... ==> Found dependencies: Net::SSLeay, IO::Socket::SSL --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.90.ta +r.gz ... OK Configuring Net-SSLeay-1.90 ... N/A ! Configure failed for Net-SSLeay-1.90. See /Users/karl/.cpanm/work/16 +27544871.1168/build.log for details. --> Working on IO::Socket::SSL Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.071 +.tar.gz ... OK ==> Found dependencies: Net::SSLeay ! Installing the dependencies failed: Module 'Net::SSLeay' is not inst +alled ! Bailing out the installation for IO-Socket-SSL-2.071. ! Installing the dependencies failed: Module 'Net::SSLeay' is not inst +alled, Module 'IO::Socket::SSL' is not installed ! Bailing out the installation for Alien-FFI-0.25. ! Installing the dependencies failed: Module 'Alien::FFI' is not insta +lled ! Bailing out the installation for FFI-Platypus-1.53.

      Tja. Very strange for the moment. Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        ! Bailing out the installation for Alien-FFI-0.25.

        You don't have libffi installed, or at east cpanm thinks not. If you install libffi outside of Perl (eg. via your OS package manager) then there's no need for Alien::FFI and therefore no need for Net::SSLeay.

        Alien::FFI is a dynamic dependency - it is only attempted to be installed itself on systems which don't already have libffi. This is why it doesn't show up in the static dependency lists. HTH.


        🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135440]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-05-23 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?