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
When using bundler and homebrew:
$ bundle config build.puma --with-cppflags=-I$(brew --prefix openssl)/include $ bundle install
I copied and adapted this answer from Lloeki here: https://stackoverflow.com/a/31516586/704499