Re: [Httpmail-devel] Ruby error:
Status: Beta
Brought to you by:
fuzz
From: Dane G. A. <da...@av...> - 2002-11-13 15:06:39
|
Dave, Thanks a bunch for the help. I'm getting another error now, but I'm thinking it may be related to my Ruby installation . . . I'm a total Ruby newbie (groans from the peanut gallery), but bought "Ruby in a Nutshell" last night and it looks quite useful. When I run thm.rb with the updated dav.rb file (for Ruby 1.6.7 & xmlparser 0.6.5): ruby thm.rb MyA...@ho... <MyHotmailPwd> <MyForwardingAddress> I get: ./cookies.rb:80:in `extract_cookies': undefined method `key?' for nil (NameError) from ./cookies.rb:43:in `request' from /usr/lib/ruby/1.6/net/http.rb:668:in `request' from /usr/lib/ruby/1.6/net/http.rb:667:in `start' from /usr/lib/ruby/1.6/net/http.rb:667:in `request' from ./cookies.rb:42:in `request' from ./dav.rb:56:in `propfind' from ./dav.rb:134:in `call' from ./dav.rb:134:in `http_wrap' from ./dav.rb:285:in `propfind' from ./httpmail.rb:24:in `start' from thm.rb:12 I had configured and installed Ruby 1.6.7 from the sources on the ruby-lang.org site. When I got your email this AM, I went hunting for md5.bundle and realized that I've got 2 different versions of md5.bundle, and actually it looks like I've got 2 Ruby installations . . . one at /usr/lib/ruby/1.6/powerpc-darwin6.0/digest/md5.bundle and another at: /usr/local/lib/ruby/1.6/powerpc-darwin6.2/digest/md5.bundle Both dir trees have pretty much the same files under the ruby directory . . . When I built Ruby, I took all the default settings (aside from the fact I had to apply the ruby-1.6.7-osx10.2.patch to 'configure' and 'error.c'). Would having two Ruby installs like this be causing a problem? (Do you know if 10.2 includes a Ruby distro?) > Honestly, I don't use the Perl version. And coincidentally, I've been > trying to get it to work on OS X 10.2 the last couple days. I've run > into a snag with the md5 stuff though... Sorry, I'm a little confused here . . . are you saying you were trying to get the Perl version working on 10.2, or the Ruby version? As I mentioned before, I've got the Perl version working, more or less, on 10.2 and can post the steps I took in configuring it, if it would be helpful. Also, from what I can tell, the error I'm getting in cookies.rb isn't related to md5, is it? (or am I simply confused :) Thanks for all the help, -Dane |