[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

digest.rb including wrong files on MacOSX

Ryan Waldron

2/21/2007 2:27:00 AM

I have been trying to install a Rails app called devalot
(http://software.pmade.c...) on my Mac (10.4 Tiger). I built
Ruby 1.8.5 from source on this box, and have been using it daily for
weeks for Rails development and other, non-Rails Ruby playing.

In the setup process, it requires a ruby script to run to do some setup:

ruby script/setup.rb

When I run this script, I get this error:

/usr/local/lib/ruby/site_ruby/1.8/digest.rb:16:in `const_missing':
Digest class not found: Digest::SHA384 (NameError)

Now, when I look in /usr/local/lib/ruby/site_ruby/1.8/digest.rb, I
find these lines:

require 'digest.so'

module Digest
autoload "SHA256", "digest/sha2.so"
autoload "SHA384", "digest/sha2.so"
autoload "SHA512", "digest/sha2.so"
...


Now, I don't have any .so files lying around. I believe the right
things are .bundle files on MacOSX.

I have, in /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.8.2, a
digest.bundle and a digest/sha2.bundle. I have the same thing in
/usr/local/lib/ruby/1.8/i686-darwin8.8.2. I don't know why they're in
both places. They're not symlinks, and cmp(1) says they're identical
files. Anyway...

Anyway, can someone tell me what I appear to have done wrong, or what
Ruby did wrong, when I built it to get into this situation?

By way of comparison, the hpricot gem does

require 'hpricot_scan'

and then there is in its lib dir both 'hpricot_scan.so' and
'hpricot_scan.bundle'.

Any ideas of where to start?

10 Answers

Ryan Waldron

2/21/2007 2:58:00 AM

0

Just a quick update to this, the whole "trying to install this app"
thing was an inadvertent red herring on my part: the problem shows up
in just trying to run Ruby's 'make test-all':

~/src/ruby rew$ make test-all
/miniruby ./runruby.rb --extout=.ext -- "./test/runner.rb"
--basedir="./test" --runner=console
/Users/rew/src/ruby/.ext/common/digest.rb:16:in `const_missing':
Digest class not found: Digest::SHA384 (NameError)
make: *** [test-all] Error 1

If anyone could shed some light on what is going on here, or how to
fix it, I'd be very much obliged.

On 2/20/07, Ryan Waldron <rew@erebor.com> wrote:
> I have been trying to install a Rails app called devalot
> (http://software.pmade.c...) on my Mac (10.4 Tiger). I built
> Ruby 1.8.5 from source on this box, and have been using it daily for
> weeks for Rails development and other, non-Rails Ruby playing.
>
> In the setup process, it requires a ruby script to run to do some setup:
>
> ruby script/setup.rb
>
> When I run this script, I get this error:
>
> /usr/local/lib/ruby/site_ruby/1.8/digest.rb:16:in `const_missing':
> Digest class not found: Digest::SHA384 (NameError)
>
> Now, when I look in /usr/local/lib/ruby/site_ruby/1.8/digest.rb, I
> find these lines:
>
> require 'digest.so'
>
> module Digest
> autoload "SHA256", "digest/sha2.so"
> autoload "SHA384", "digest/sha2.so"
> autoload "SHA512", "digest/sha2.so"
> ...
>
>
> Now, I don't have any .so files lying around. I believe the right
> things are .bundle files on MacOSX.
>
> I have, in /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.8.2, a
> digest.bundle and a digest/sha2.bundle. I have the same thing in
> /usr/local/lib/ruby/1.8/i686-darwin8.8.2. I don't know why they're in
> both places. They're not symlinks, and cmp(1) says they're identical
> files. Anyway...
>
> Anyway, can someone tell me what I appear to have done wrong, or what
> Ruby did wrong, when I built it to get into this situation?
>
> By way of comparison, the hpricot gem does
>
> require 'hpricot_scan'
>
> and then there is in its lib dir both 'hpricot_scan.so' and
> 'hpricot_scan.bundle'.
>
> Any ideas of where to start?
>
>

Austin Ziegler

2/21/2007 1:59:00 PM

0

On 2/20/07, Ryan Waldron <rew@erebor.com> wrote:
> Just a quick update to this, the whole "trying to install this app"
> thing was an inadvertent red herring on my part: the problem shows up
> in just trying to run Ruby's 'make test-all':

This seems like a bug in Ruby; I would post this to ruby-core or on
rubyforge.org's Ruby bug tracker.

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca

Werner

1/22/2013 2:32:00 AM

0


What have you done for the poor?

El Castor

1/22/2013 7:23:00 AM

0

On Mon, 21 Jan 2013 13:41:05 -0800 (PST), chatnoir
<wolfbat359a@mindspring.com> wrote:

>On Jan 20, 11:46?pm, El Castor <DrE...@justuschickens.com> wrote:
>> On Sun, 20 Jan 2013 03:15:15 -0800 (PST), chatnoir
>>
>> <wolfbat3...@mindspring.com> wrote:
>> >http://www.bbc.co.uk/news/uk-21094962?...
>>
>> >18 January 2013 Last updated at 19:12 ET
>> >Oxfam seeks 'new deal' on inequality from world leaders
>>
>> Conservatives contribute more to charity than liberals.
>>
>> "Who Gives and Who Doesn't?"http://abcnews.go.com/2020/story?id=2682730&...
>
>LOL = by JOHN STOSSEL - Hardly an objective observer!

Done by ABC. Are you accusing them of faking the results of their
experiment?

chatnoir

1/22/2013 3:01:00 PM

0

On Jan 22, 12:22 am, El Castor <DrE...@justuschickens.com> wrote:
> On Mon, 21 Jan 2013 13:41:05 -0800 (PST), chatnoir
>
> <wolfbat3...@mindspring.com> wrote:
> >On Jan 20, 11:46 pm, El Castor <DrE...@justuschickens.com> wrote:
> >> On Sun, 20 Jan 2013 03:15:15 -0800 (PST), chatnoir
>
> >> <wolfbat3...@mindspring.com> wrote:
> >> >http://www.bbc.co.uk/news/uk-21094962?...
>
> >> >18 January 2013 Last updated at 19:12 ET
> >> >Oxfam seeks 'new deal' on inequality from world leaders
>
> >> Conservatives contribute more to charity than liberals.
>
> >> "Who Gives and Who Doesn't?"http://abcnews.go.com/2020/story?id=2682730&...
>
> >LOL = by JOHN STOSSEL - Hardly an objective observer!
>
> Done by ABC. Are you accusing them of faking the results of their
> experiment?

Anytime Stossel in involved = yes

chatnoir

1/22/2013 3:02:00 PM

0

On Jan 21, 7:31 pm, Werner <whetz...@mac.com> wrote:
> What have you done for the poor?

What little I can. Contribute to micro loan programs!

Werner

1/22/2013 3:52:00 PM

0


It's not enough.

chatnoir

1/22/2013 3:56:00 PM

0

On Jan 22, 8:51 am, Werner <whetz...@mac.com> wrote:
> It's not enough.

Who are you to say!

Jimmy Volleyball

1/22/2013 8:09:00 PM

0

On Tue, 22 Jan 2013 07:56:04 -0800 (PST), chatnoir
<wolfbat359a@mindspring.com> wrote:

>On Jan 22, 8:51?am, Werner <whetz...@mac.com> wrote:
>> It's not enough.
>
>Who are you to say!

What amazes me is the fact that millions of people rail against
religion and the separation of church and state and all that
crap, yet turn right around and tell us that we should be our
brother's keeper, if not voluntarily then at the point of a gun.

rumpelstiltskin

1/22/2013 8:35:00 PM

0

On Tue, 22 Jan 2013 14:08:37 -0600, Jimmy Volleyball <jv@arklatex.net>
wrote:

>On Tue, 22 Jan 2013 07:56:04 -0800 (PST), chatnoir
><wolfbat359a@mindspring.com> wrote:
>
>>On Jan 22, 8:51?am, Werner <whetz...@mac.com> wrote:
>>> It's not enough.
>>
>>Who are you to say!
>
>What amazes me is the fact that millions of people rail against
>religion and the separation of church and state and all that
>crap, yet turn right around and tell us that we should be our
>brother's keeper, if not voluntarily then at the point of a gun.


Just because the church includes a piece of ancient
wisdom in its beliefs, that doesn't mean the church
retroactively invented it or has sole proprietorship over it.