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

Running perl script on Mac -- so frustrating

by packzap (Initiate)
on Sep 04, 2019 at 01:36 UTC ( #11105549=perlquestion: print w/replies, xml ) Need Help??

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

I have a perl script that runs fine on Windows 10. But I am having a tough time getting it to run on the Mac High Sierra OS X platform. I installed all the different flavors of Perl, perl brew, etc and Xcode, Xcode tools, cpan, etc . . . But the script always stalls out because some dependency is not available.

The latest error says, " LWP will support https URLs if the LWP::Protocol::https module is installed.

So, in Terminal I enter, "sudo cpan LWP::Protocol::https", and get back a zillion lines of messages that I can neither makes heads or tails of. Partially reproduced below:

Loading internal logger. Log::Log4perl recommended for better logging Reading '/Users/dp/.cpan/Metadata' Database was generated on Wed, 04 Sep 2019 00:17:02 GMT Running install for module 'LWP::Protocol::https' Fetching with LWP: http://mirrors.sonic.net/cpan/authors/id/O/OA/OALDERS/LWP-Protocol-htt +ps-6.07.tar.gz Checksum for /Users/dp/.cpan/sources/authors/id/O/OA/OALDERS/LWP-Proto +col-https-6.07.tar.gz ok 'YAML' not installed, will not store persistent state Configuring O/OA/OALDERS/LWP-Protocol-https-6.07.tar.gz with Makefile. +PL Checking if your kit is complete... Looks good Warning: prerequisite IO::Socket::SSL 1.54 not found. Warning: prerequisite Mozilla::CA 20110101 not found. Generating a Unix-style Makefile Writing Makefile for LWP::Protocol::https Writing MYMETA.yml and MYMETA.json OALDERS/LWP-Protocol-https-6.07.tar.gz /Users/dp/perl5/perlbrew/perls/perl-5.28.0/bin/perl Makefile.PL -- O +K Running make for O/OA/OALDERS/LWP-Protocol-https-6.07.tar.gz ---- Unsatisfied dependencies detected during ---- ---- OALDERS/LWP-Protocol-https-6.07.tar.gz ---- IO::Socket::SSL [requires] Mozilla::CA [requires] Running install for module 'IO::Socket::SSL' Fetching with LWP: http://mirrors.sonic.net/cpan/authors/id/S/SU/SULLR/IO-Socket-SSL-2.06 +6.tar.gz Fetching with LWP: http://mirrors.sonic.net/cpan/authors/id/S/SU/SULLR/CHECKSUMS Checksum for /Users/dp/.cpan/sources/authors/id/S/SU/SULLR/IO-Socket-S +SL-2.066.tar.gz ok ---- Unsatisfied dependencies detected during ---- ---- SULLR/IO-Socket-SSL-2.066.tar.gz ---- Net::SSLeay [build_requires] Running install for module 'Net::SSLeay' Fetching with LWP: http://mirrors.sonic.net/cpan/authors/id/C/CH/CHRISN/Net-SSLeay-1.88.t +ar.gz Fetching with LWP: http://mirrors.sonic.net/cpan/authors/id/C/CH/CHRISN/CHECKSUMS Checksum for /Users/dp/.cpan/sources/authors/id/C/CH/CHRISN/Net-SSLeay +-1.88.tar.gz ok Configuring C/CH/CHRISN/Net-SSLeay-1.88.tar.gz with Makefile.PL Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] + n *** Found LibreSSL-2.2.7 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 Generating a Unix-style Makefile Writing Makefile for Net::SSLeay Writing MYMETA.yml and MYMETA.json CHRISN/Net-SSLeay-1.88.tar.gz /Users/dp/perl5/perlbrew/perls/perl-5.28.0/bin/perl Makefile.PL -- O +K Running make for C/CH/CHRISN/Net-SSLeay-1.88.tar.gz cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay) blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 +characters: directory blib/lib/auto/Net/SSLeay: do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do +_https do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.a +l, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate +to get_http head_https.al, head_https3.al, head_https4.al, head_http.al, head_ht +tp3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al +truncate to head_htt post_https.al, post_https3.al, post_https4.al, post_http.al, post_ht +tp3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al +truncate to post_htt put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.a +l, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate +to put_http ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl +_read ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp +_read tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ Running Mkbootstrap for SSLeay ()
In Windows, the Perl script just runs fine. In Mac -- no way. I don't understand why it so difficult for Perl to run in the Mac OS X environment? Is it a permissions issue? Is it a path problem? I just don't know and feel so lost :(

Replies are listed 'Best First'.
Re: Running perl script on Mac -- so frustrating
by jcb (Priest) on Sep 04, 2019 at 03:00 UTC

    So far, what you have posted indicates success... could we have the last hundred lines or so?

Re: Running perl script on Mac -- so frustrating
by marto (Archbishop) on Sep 04, 2019 at 09:21 UTC

    Strawberry perl ships with a whole bunch of things which aren't part of the standard perl distribution. If you want to run something you need to satisfy any dependencies it may have. You haven't shown an actual problem which can be addressed. How do I post a question effectively?.

Re: Running perl script on Mac -- so frustrating
by Marshall (Abbot) on Sep 04, 2019 at 02:51 UTC
    I am not sure, but in the past to get HTTPS working, I've had to install https://metacpan.org/pod/Crypt::SSLeay

    In general Perl works on both Mac and Windows.

Re: Running perl script on Mac -- so frustrating
by nysus (Vicar) on Sep 04, 2019 at 17:45 UTC

    I have perl running on my Mac. I do remember having issues with SSL. I wish I could remember what I did but I'm pretty sure I solved the problem with homebrew and installing openssl: https://formulae.brew.sh/formula/openssl. Also, run perl -V as a sanity check and make sure you are running the version of Perl you expect to be running.

    But Google around and take heart, the problem is solvable.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11105549]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2020-06-01 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?