Trying to install
cpanm install DBD::mysql
Checking if libs are available for compiling...
Can't link/include C library 'ssl', 'crypto', aborting.
You can pass
cflags arg to help
Makefile.PL find the libaries on the machine (in my case the openssl libraries were installed with homebrew):
cpanm --configure-args="--libs='-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/mysql/5.7.17/lib' --cflags='-I/usr/local/opt/openssl/include -I/usr/local/Cellar/mysql/5.7.17/include/mysql'" DBD::mysql