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

Discussion in 'Ruby' started by Tammy Mc, Sep 29, 2006.

  1. Tammy Mc

    Tammy Mc Guest

    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

    --
    Posted via http://www.ruby-forum.com/.
     
    Tammy Mc, Sep 29, 2006
    #1
    1. Advertising

  2. 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.
     
    Arthaey Angosii, Sep 30, 2006
    #2
    1. Advertising

  3. Tammy Mc

    Tammy Mc Guest

    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?






    --
    Posted via http://www.ruby-forum.com/.
     
    Tammy Mc, Oct 1, 2006
    #3
  4. Tammy Mc

    Tammy Mc Guest

    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.

    --
    Posted via http://www.ruby-forum.com/.
     
    Tammy Mc, Oct 1, 2006
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ruby Ruby
    Replies:
    0
    Views:
    220
    Ruby Ruby
    Apr 22, 2004
  2. Une bévue
    Replies:
    4
    Views:
    109
    Une bévue
    Dec 29, 2005
  3. Prasanna Perera
    Replies:
    0
    Views:
    212
    Prasanna Perera
    Oct 9, 2009
  4. myalo
    Replies:
    4
    Views:
    1,410
    A. Sinan Unur
    Nov 28, 2007
  5. Replies:
    2
    Views:
    370
    Julian Cromarty
    Jun 26, 2013
Loading...

Share This Page