LoadError in Ruby
Posted
by wilhelmtell
on Stack Overflow
See other posts from Stack Overflow
or by wilhelmtell
Published on 2010-06-13T14:42:40Z
Indexed on
2010/06/16
1:12 UTC
Read the original article
Hit count: 258
ruby
I'm having issues requiring 'digest/sha1'
.
~$ ./configure --prefix=$HOME/usr --program-suffix=19 --enable-shared
~$ make
~$ make install
~$ irb19
irb(main):001:0> require 'digest/sha1'
LoadError: dlopen(/Users/matan/usr/lib/ruby19/1.9.1/i386-darwin9.8.0/digest/sha1.bundle, 9): Symbol not found: _rb_Digest_SHA1_Finish
Referenced from: /Users/matan/usr/lib/ruby19/1.9.1/i386-darwin9.8.0/digest/sha1.bundle
Expected in: flat namespace
- /Users/matan/usr/lib/ruby19/1.9.1/i386-darwin9.8.0/digest/sha1.bundle
from (irb):1:in `require'
from (irb):1
from /Users/matan/usr/bin/irb19:12:in `<main>'
irb(main):002:0>
I know some standard modules require fine, while others don't. If i'd say require 'yaml'
or even require 'digest'
then that works fine. I am using OS X 10.5.8, with Ruby 1.9.1-p378. The system-wide install of Ruby 1.8.6 works fine.
Just last week I uninstalled Ruby and re-installed it. When I first installed Ruby I installed it in a similar manner, from source prefixed at my local $HOME/usr
directory. I tried removing each and every file make install
installs, then re-installing, but that didn't help.
Do you have an idea what the issue is and how to resolve it?
© Stack Overflow or respective owner