Thin and Puma fail with similar issues - ERROR: Failed to build gem native extension on Mac with OpenSSL@1.1
The Puma team pointed me to a temporary solution for compiling puma.
gem install puma:4.3.5 -- --with-cflags="-Wno-error=implicit-function-declaration"
I used this variant for the latest version
gem install puma -- --with-cflags="-Wno-error=implicit-function-declaration"
I was also able to use this same technique to with thin, but I have not tested whether the gem works.
gem install thin -- --with-cflags="-Wno-error=implicit-function-declaration"
An error occurred while installing thin (1.7.2)
disabling the error fixed it:
bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"
Bundle install results in: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ... make install failed, exit code 2
I figured out what I needed to do.
Referencing an answer on the json gem github, It seems running brew install coreutils
solved all my issues revolving around this problem of mine.
gem eventmachine fatal error: 'openssl/ssl.h' file not found
$ gem install eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include
Building native extensions with: '--with-cppflags=-I/usr/local/opt/openssl/include'
This could take a while...
Successfully installed eventmachine-1.0.8
1 gem installed
You can also set up bundler like this but I think that is superficial
bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include
Related Topics
Case Expression Different in Ruby 1.9
Rails: How to Check If a Column Has a Value
Ruby on Rails Map.Root Doesn't Seem to Be Working
Programmatically Derive a Regular Expression from a String
Ruby Ssl with Twitter Failed on Cert Openssl Issue on Windows 7
Rails 4: How to Upload Files with Ajax
Find Where Associated Records Exist
Run System Command in Ruby and Interact with It
Rails 4 Devise 3.1.1 Actioncontroller::Unknownformat in Devise::Registrationscontroller#New
How to Destroy a Record Without an Id Column in Ruby Activerecord
What Do 'Def +@' and 'Def -@' Mean
How to Set Environment Variable Using Chef
How to Run All Ruby Scripts with Warnings
You May Have Encountered a Bug in the Ruby Interpreter or Extension Libraries
Ruby: What Is the Order of Keys/Values Returned by Hash.Keys and Hash.Values Methods