You are here

Installing Net::SSLeay on Mac OSX El Capitan

Install openssl using brew:

basestar:~ brad$ brew install openssl
Warning: openssl-1.0.2f already installed
basestar:~ brad$ brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.2f... 1561 symlinks created

(Note that the link step is important - even if you already have OpenSSL installed)
Set environment variables and install:

basestar:~ brad$ export EXTRA_CFLAGS=-I/usr/local/opt/openssl/include && export EXTRA_CXXFLAGS=-I/usr/local/opt/openssl/include && export EXTRA_LDFLAGS=-L/usr/local/opt/openssl/lib
basestar:~ brad$ cpanm Net::SSLeay
--> Working on Net::SSLeay
Fetching http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.72.tar.gz ... OK
Configuring Net-SSLeay-1.72 ... OK
Building and testing Net-SSLeay-1.72 ... OK
Successfully installed Net-SSLeay-1.72
1 distribution installed