Mac OS X, Perl and SSL


Perl on MAC does not support SSL out of the box. So you must install SSL support:

sudo perl -MCPAN -e "install Crypt::SSLeay"

3 Responses to “Mac OS X, Perl and SSL”

  1. Mike Says:

    Hm… unfortunately this fails – which development stuff do I need to install first?

    Crypt-SSLeay-0.57
    Crypt-SSLeay-0.57/t
    Crypt-SSLeay-0.57/Changes
    Crypt-SSLeay-0.57/lib
    Crypt-SSLeay-0.57/certs
    Crypt-SSLeay-0.57/MANIFEST
    Crypt-SSLeay-0.57/TODO
    Crypt-SSLeay-0.57/typemap
    Crypt-SSLeay-0.57/MANIFEST.SKIP
    Crypt-SSLeay-0.57/eg
    Crypt-SSLeay-0.57/SSLeay.pm
    Crypt-SSLeay-0.57/SSLeay.xs
    Crypt-SSLeay-0.57/README
    Crypt-SSLeay-0.57/Makefile.PL
    Crypt-SSLeay-0.57/META.yml
    Crypt-SSLeay-0.57/eg/lwp-ssl-test
    Crypt-SSLeay-0.57/eg/net-ssl-test
    Crypt-SSLeay-0.57/certs/ca-bundle.crt
    Crypt-SSLeay-0.57/certs/notacakeynopass.pem
    Crypt-SSLeay-0.57/certs/notacacert.pem
    Crypt-SSLeay-0.57/lib/Crypt
    Crypt-SSLeay-0.57/lib/Net
    Crypt-SSLeay-0.57/lib/Net/SSL.pm
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay/MainContext.pm
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay/Conn.pm
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay/X509.pm
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay/Err.pm
    Crypt-SSLeay-0.57/lib/Crypt/SSLeay/CTX.pm
    Crypt-SSLeay-0.57/t/00-basic.t
    Crypt-SSLeay-0.57/t/02-live.t
    Crypt-SSLeay-0.57/t/01-connect.t

    CPAN.pm: Going to build D/DL/DLAND/Crypt-SSLeay-0.57.tar.gz

    ========================================================================
    No installed SSL libraries found in any of the following places.
    /local
    /local/ssl
    /opt/ssl
    /usr
    /usr/local
    /usr/local/ssl
    /usr/local/openssl
    You will have to either specify a directory location at the following
    prompt, or rerun the Makefile.PL program and use the –lib switch
    to specify the path. If the path in question is considered standard
    on your platform, please consider filing a bug report in order to
    have it taken into account in a subsequent version of Crypt::SSLeay.

    Which SSL install path do you want to use? /usr/local
    /usr/local does not appear to be an SSL library installation, since
    the required header files were not found. The build cannot proceed.
    Running make test
    Make had some problems, maybe interrupted? Won’t test
    Running make install
    Make had some problems, maybe interrupted? Won’t install

  2. sj Says:

    Not sure. I’m assuming that you’ve already installed the Mac developer CD and have XCode, … already installed. If not, you should do that first.

  3. CycleGirl Says:

    The install is looking for an SSL library – a place where you have set up a public/private key pair. It looked in all the usual places – /local, /local/ssl, etc., but didn’t find your keys. If you don’t have an SSL key, create one. Check out http://help.github.com/mac-key-setup/ for info on how to set up your key.

    After you have a key then run the install again. Specify where your keys are and the install will continue and be successful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: