LoadError: dlopen(digest/sha1.bundle): Symbol not found: _rb_Digest_SHA1_Finish LoadError: dlopen(digest/sha1.bundle): Symbol not found: _rb_Digest_SHA1_Finish ruby-on-rails ruby-on-rails

LoadError: dlopen(digest/sha1.bundle): Symbol not found: _rb_Digest_SHA1_Finish


Possible solutions:

  1. $ unset C_INCLUDE_PATH and reinstall Ruby

    This is the solution that worked for me.

    $ echo $C_INCLUDE_PATH

    If C_INCLUDE_PATH is set, it will break Ruby builds. Remove it from your environment; either temporarily with $ unset C_INCLUDE_PATH, or permanently (might be in .bashrc, .profile, .bash_profile); then reinstall ruby.

  2. It might be related to OpenSSL, RVM, XCode's Command Line Tools (gcc), or other build issues.

    See this answer if the previous solution didn't work.


For anyone, like me, coming here because of an error like this:

LoadError: dlopen(/Users/sebkomianos/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin13.0.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_methodReferenced from: /Users/sebkomianos/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin13.0.0/openssl.bundleExpected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

One solution (taken from here) might be to reinstall your version of ruby. eg: rbenv install 2.0.0-p247