Phillip Smith
commentary

Installing Net::SSLeay on OS X El Capitan

The correct way to fix it...

Installing Net::SSLeay on OS X El Capitan

On OS X El Capitan (10.11.1), building Net::SSLeay fails with the following error:
SSLeay.xs:163:10: fatal error: ‘openssl/err.h’ file not found
#include <openssl/err.h>
The problem is that Apple no longer ships openssl headers

Hit this super-annoying issue today.

Contrary to this fellow’s post, the right solution is simply to install the OpenSSL libraries with Homebrew:

brew install openssl

brew link openssl --force

Then Net::SSLeay can be successfully installed using cpanm Net::SSLeay.

C’est tout.

About

Hi, I'm Phillip Smith, a veteran digital publishing consultant, online advocacy specialist, and strategic convener. If you enjoyed reading this, find me on Twitter and I'll keep you updated.

Related

Raise a glass with the Uncharted Journalism Fund on Jan 17

At a time when much of the news about news is doom and gloom, the Uncharted Journalism Fund is braving stormy waters to help bring you in...… Continue reading