Search code examples
ruby-on-railsmacosopensslhomebrewrbenv

Brew update breaks "Rails s" ( Open SSL + LoadError - library not found for class Digest::SHA1 — digest/sha1 )


Following a recent update of Homebrew, I can not use the "rails s" command anymore. Apparently, it is a well known issue. Since macOS decided to drop OpenSSL and switched to LibreSSL, that error poped up a lot. Thus I applied the common answer to this :

brew uninstall openssl; 
brew uninstall openssl; 
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

Once this done, another issue appeared: "LoadError - library not found for class Digest::SHA1 ". There again, I found an answer to this issue and applied it. Which brought me back to square one with my original issue with OpenSSL.

How can I get it running in a proper way so my "rails s" does not break anymore ?

Thank you in advance!!!

Stack: - ruby 2.7.0p0 ; - Mac Os High Sierra


Solution

  • This fix works for me. Side note, I had to restart my mac for it to works. No idea why closing and opening a new session of my terminal was not enough though !