Bug #6033

Digest issue in 1.9.3

Added by Scott Gonyea about 5 years ago. Updated over 4 years ago.

Third Party's Issue
Target version:
ruby -v:


This only happens to me on Ruby 1.9.3, in Mac OS X Lion (10.7.3). 1.9.2/1.8.7 are not affected by this issue.

After building ruby-1.9.3-p0 OR ruby-1.9.3-p122 (via rvm), I get the following issue attempting to require 'digest/sha1' (or md5, etc).

1.9.3p122 :001 > require 'digest/sha1'
LoadError: dlopen(/Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle, 9): Symbol not found: rb_Digest_SHA1_Finish
Referenced from: /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle
Expected in: flat namespace
in /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle - /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle
from /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site
ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /Users/me/.rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
from (irb):1
from /Users/me/.rvm/rubies/ruby-1.9.3-head/bin/irb:16:in `'


#1 [ruby-core:42680] Updated by Yui NARUSE about 5 years ago

  • Status changed from Open to Feedback

I can't reproduce this.
Anyone can do?

#2 [ruby-core:42696] Updated by Scott Gonyea about 5 years ago

Weird. It's happening on both of my laptops, but not a fresh one. I guess something is screwed up from when Lion first came out. Time to format... (go ahead and reject)

#3 [ruby-core:42796] Updated by Scott Gonyea about 5 years ago

I found the source of the bug. My ~/.profile defined $C_INCLUDE_PATH and $CPLUS_INCLUDE_PATH. Having this here did not affect Ruby 1.8.7 or 1.9.2. It did, however, screw up portions of 1.9.3. How strange.

#4 [ruby-core:45077] Updated by Takayoshi Sato almost 5 years ago

I have the same issue, too :(

I evaded it temporarily by using 1.9.2 sha1.bundle.

mv "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle" "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle.bak"
cp "$HOME/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle" "$HOME/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/digest/sha1.bundle"

#5 [ruby-core:47506] Updated by dan de havilland over 4 years ago

I'm experiencing the same issue, Mac OS 10.8.1, RVM, Ruby 1.9.3-p194

Also fixed using @annotunzdy's approach

#6 [ruby-core:47508] Updated by Yui NARUSE over 4 years ago

  • Status changed from Feedback to Third Party's Issue

Thank you for feedback.
So this seems third party's issue.

Also available in: Atom PDF