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

T

Tammy Mc

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:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
or, err, well, I did not get very far.

Any insight appreciated! Thanks,

t
 
A

Arthaey Angosii

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.
 
T

Tammy Mc

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?
 
T

Tammy Mc

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top