I have build ruby 1.6.7 with Digest::SHA1 :
$ ruby -v -e 'print Digest::SHA1,"\n"'
ruby 1.6.7 (2002-03-01) [i386-netbsdelf1.6]
Digest::SHA1
$
and I am able to use it from scripts run at the command line.
However I'd like to use it in a mod_ruby app I'm working on too.
This does not work as expected (error_log):
.....
/usr/local/apache/htdocs/ruby/xxx.rb:36:in `genid': uninitialized constant Digest at Modul::Klass (NameError)
.....
I am not sure why this happens. I built ruby with the digests,
eruby (no options), mod_ruby (with eruby) and installed as I
built. ruby/apache/eruby/mod_ruby works as expected but for the
digests.
$ grep -i sha1 /usr/local/bin/ruby
Binary file /usr/local/bin/ruby matches
$ grep -i sha1 /usr/local/lib/ruby/1.6/i386-netbsdelf1.6/libruby.a
$ # no matches....
$ ls -laR /usr/local/lib/ruby/1.6/i386-netbsdelf1.6/digest/
total 4
drwxr-xr-x 2 root wheel 512 Oct 2 20:39 ./
drwxr-xr-x 3 root wheel 512 Nov 23 01:06 ../
$
I do not have too much experience with mod_ruby (I do not know what
this is supposed to look like), if anyone can tell what is wrong I'd
appriciate it much.
regards, Tom