Dmitriy B. wrote in post #960995: > Any updates on this? > I just compiled ruby 1.9.2 from source and tried to install rubygem > 1.3.7 (I did check if it was already installed on not) but it errors > out. Does anyone know what is the problem and how to fix it? > > I am having the same problem. I am on an ubuntu system: Ubuntu 10.04 LTS - the Lucid Lynx . I downloaded and installed ruby 1.9.2, and ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
gem -v is 1.3.7. But when I try to run gem install ... gem install rails -v 3.0.2 ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand So I downloaded gem1.3.7 and when I run ruby setup.rb I get: ruby setup.rb --help /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError) from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems/source_index.rb:58:in `from_installed_gems' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:883:in `source_index' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems/gem_path_searcher.rb:81:in `init_gemspecs' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems/gem_path_searcher.rb:13:in `initialize' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:841:in `new' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:841:in `block in searcher' from <internal:prelude>:10:in `synchronize' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:840:in `searcher' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:479:in `find_files' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:983:in `load_plugins' from /home/julian/Work/ruby/rubygems-1.3.7/lib/rubygems.rb:1139:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from setup.rb:24:in `<main>' -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.