D
David Palm
Hi all,
I've installed ruby 1.9 from trunk and I used the --prefix option to avoid conflicts with 1.8, like Dave Thomas advices here: http://pragdave.blogs.pragprog.com/pragdave/2007/12/ruby-19right-fo.html
Everything seem to work splendidly, except for the "gem" command. The new install has an empty gems cache of course, so all operations that need to access that will try to bulk download the indexes from http://gems.rubyforge.org
All index downloading fails with a unhelpful "Error fetching remote gem cache: undefined method `[]=' for nil:NilClass"
I started to try to find out where the failure occurs and it seems like the guilty file is open-uri.rb (line 411), which is a call to the meta_add_field of the Meta module (adding http heders I guess) where the @META inst var (a hash) is added to. The inst var isn't set, so that's the nil in the above error message. Why is @META nil? I'd say it's because the Meta module isn't initialized properly, but I dont know why.
Before digging any deeper I wanted to ask you all: am I the only one having issues with the "gem" command? Should it work? Any workarounds? Am I missing something very basic?
Oh, versions:
gem -v => 1.0.1
ruby -v => ruby 1.9.0 (2008-01-21 revision 0) [i686-linux]
Platforms: MacOS X 10.5 and Ubuntu Feisty Fawn
Thanks for any pointers/comments!
I've installed ruby 1.9 from trunk and I used the --prefix option to avoid conflicts with 1.8, like Dave Thomas advices here: http://pragdave.blogs.pragprog.com/pragdave/2007/12/ruby-19right-fo.html
Everything seem to work splendidly, except for the "gem" command. The new install has an empty gems cache of course, so all operations that need to access that will try to bulk download the indexes from http://gems.rubyforge.org
All index downloading fails with a unhelpful "Error fetching remote gem cache: undefined method `[]=' for nil:NilClass"
I started to try to find out where the failure occurs and it seems like the guilty file is open-uri.rb (line 411), which is a call to the meta_add_field of the Meta module (adding http heders I guess) where the @META inst var (a hash) is added to. The inst var isn't set, so that's the nil in the above error message. Why is @META nil? I'd say it's because the Meta module isn't initialized properly, but I dont know why.
Before digging any deeper I wanted to ask you all: am I the only one having issues with the "gem" command? Should it work? Any workarounds? Am I missing something very basic?
Oh, versions:
gem -v => 1.0.1
ruby -v => ruby 1.9.0 (2008-01-21 revision 0) [i686-linux]
Platforms: MacOS X 10.5 and Ubuntu Feisty Fawn
Thanks for any pointers/comments!