Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4468

Re: Digest::Base problem

From Brian Candler <b.candler@pobox.com>
Newsgroups comp.lang.ruby
Subject Re: Digest::Base problem
Date Fri, 13 May 2011 03:17:23 -0500
Organization Service de news de lacave.net
Lines 18
Message-ID <8a4bfe3b706c6ee624e806adf127beba@ruby-forum.com> (permalink)
References <c5e6bb4c0827e040374c5f9747b50b73@ruby-forum.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1305274691 90602 65.111.164.187 (13 May 2011 08:18:11 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Fri, 13 May 2011 08:18:11 +0000 (UTC)
In-Reply-To <c5e6bb4c0827e040374c5f9747b50b73@ruby-forum.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 383188
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <8a4bfe3b706c6ee624e806adf127beba@ruby-forum.com>
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!feed.ac-versailles.fr!talisker.lacave.net!lacave.net!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:4468

Show key headers only | View raw


Just one thing to check: you don't happen to have a file called 
"digest.rb" lying around in the current directory?

It's tempting when writing a test program to exercise the digest library 
to call it "digest.rb". But then "require 'digest'" will fail because it 
will load the wrong file :-)

One way to diagnose this is to find digest.so on your system (e.g. 
"locate digest.so") and then require it with a full path: e.g.

irb(main):001:0> require '/usr/lib/ruby/1.8/x86_64-linux/digest.so'
=> true
irb(main):002:0> Digest::Base
=> Digest::Base

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 05:59 -0500
  Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 06:29 -0500
    Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 06:55 -0500
      Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 07:14 -0500
        Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 07:45 -0500
          Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 07:53 -0500
            Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 08:02 -0500
              Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 08:25 -0500
                Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 08:36 -0500
                Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 08:43 -0500
                Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 08:57 -0500
  Re: Digest::Base problem brabuhr@gmail.com - 2011-05-12 08:07 -0500
    Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 08:22 -0500
      Re: Digest::Base problem brabuhr@gmail.com - 2011-05-12 09:15 -0500
        Re: Digest::Base problem brabuhr@gmail.com - 2011-05-12 09:26 -0500
          Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 09:39 -0500
            Re: Digest::Base problem Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-12 09:52 -0500
              Re: Digest::Base problem Linda Metcalfe <lmetcalfe@connextions.com> - 2011-05-12 10:06 -0500
                Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-12 10:19 -0500
            Re: Digest::Base problem brabuhr@gmail.com - 2011-05-12 10:58 -0500
  Re: Digest::Base problem Brian Candler <b.candler@pobox.com> - 2011-05-13 03:17 -0500
    Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-13 06:23 -0500
      Re: Digest::Base problem Martin Hansen <mail@maasha.dk> - 2011-05-13 06:52 -0500

csiph-web