Help: digest/sha2.so: no such file to load -- digest.so

Hi

Can someone please help me out with this install error?
Well actually I can install ruby 1.8.5 on OS X 10.4 but I cannot do a
successful “make test” or use ruby to run gem setup.

I get this error:

[/src/ruby-1.8.5] tammy% make test
./rubytest.rb:40: warning: Insecure world writable dir /usr/local/bin,
mode 040777
digest/sha2.so: no such file to load – digest.so (LoadError)
test failed
make: *** [test] Error 1
[/src/ruby-1.8.5] tammy% sudo chmod 775 /usr/local/bin
[/src/ruby-1.8.5] tammy% make test
digest/sha2.so: no such file to load – digest.so (LoadError)
test failed
make: *** [test] Error 1

I followed HiveLogic’s install guide:

or, err, well, I did not get very far.

Any insight appreciated! Thanks,

 t

I have the same problem with digest.so not existing, but with Ruby
1.8.4 on Mandrake 10.1. I’ve tried Googling for digest.so, but I’m only
coming up with Perl modules.

What is interesting is I can see these in ruby source after making ruby:

/usr/local/src/ruby-1.8.5/.ext/powerpc-darwin8.7.0/digest.bundle
/usr/local/src/ruby-1.8.5/ext/digest/digest.c
/usr/local/src/ruby-1.8.5/ext/digest/digest.h
/usr/local/src/ruby-1.8.5/ext/digest/digest.o
/usr/local/src/ruby-1.8.5/ext/digest/digest.txt
/usr/local/src/ruby-1.8.5/ext/digest/digest.txt.ja
/usr/local/src/ruby-1.8.5/ext/openssl/lib/openssl/digest.rb

And the make ended with this:

SETUP=ext/Setup
EXTOBJS=ext/extinit.o ext/digest/sha2/sha2.a
making ruby
make[1]: `ruby’ is up to date.

Yet I still get this:
tammy% make test
digest/sha2.so: no such file to load – digest.so (LoadError)
test failed
make: *** [test] Error 1

But I can:
ruby --version
ruby 1.8.5 (2006-08-25) [powerpc-darwin8.7.0]
(and ruby --copyright or --help)

Yet I have searched far and wide. Nothing reported on this. Wonder why?!
Is no one using 1.8.5 yet?

Well

I installed ruby 1.8.4 exactly the same way I had installed 1.85:

36  17:25   ./configure --prefix=/opt/local --enable-pthread 

–with-readline-dir=/usr/local
37 17:27 make
38 17:34 make test
39 17:53 sudo make install
40 17:53 make clean

And, voila, ruby works, gem is installed, gem works, and rails is now
installing via gem.
Notice the “make test” step worked for 1.8.4 too.