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
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