puma gem - Failed to build gem native extension
I was getting the following error while installing puma gem $ gem install puma Fetching: puma-2.11.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed to build gem native extension. ruby extconf.rb checking for BIO_read() in -lcrypto... no checking for BIO_read() in -llibeay32... no *** extconf.rb failed *** Try the following gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include bundle install You can also specify the gem version, like the following: gem install puma -v '2.11.3' -- --with-cppflags=-I/usr/local/opt