I was getting the following error while installing puma gem
$ gem install puma Fetching: puma-2.11.2.gem (100%) Building native extensions. This coul
I'm on OS X 10.12.4 and the comment @mahi added worked for me:
gem install puma -v '3.6.0' -- --with-opt-dir=/usr/local/opt/openssl