From: Alex Gutteridge Date: 2010-10-29T16:55:39+09:00 Subject: Re: rsruby install trouble On Fri, 29 Oct 2010 05:45:25 +0900, Guybrush Threepwood wrote: > Okay, now I'm trying to install rubygems, but am getting a weird error > message for that. Do I have to pass it anything, or should it just be > ruby setup.rb in the directory where the files are? > > (the error) > > ./lib/rubygems.rb:723:in `set_paths': uninitialized constant Gem::Etc > (NameError) > from ./lib/rubygems.rb:719:in `each' > from ./lib/rubygems.rb:719:in `set_paths' > from ./lib/rubygems.rb:526:in `path' > from ./lib/rubygems/source_index.rb:66:in > `installed_spec_directories' > from ./lib/rubygems/source_index.rb:56:in `from_installed_gems' > from ./lib/rubygems.rb:736:in `source_index' > from ./lib/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' > from ./lib/rubygems/gem_path_searcher.rb:21:in `initialize' > from ./lib/rubygems.rb:684:in `new' > from ./lib/rubygems.rb:684:in `searcher' > from ./lib/rubygems.rb:683:in `synchronize' > from ./lib/rubygems.rb:683:in `searcher' > from ./lib/rubygems/custom_require.rb:34:in `require' > from /usr/lib/ruby/1.8/tmpdir.rb:12 > from ./lib/rubygems/custom_require.rb:31:in > `gem_original_require' > from ./lib/rubygems/custom_require.rb:31:in `require' > from setup.rb:95 If you're on OSX you should already have rubygems (I think?). Your error looks like it comes from having a <1.8.3 version of Ruby installed: http://rubyforge.org/tracker/index.php?func=detail&aid=22313&group_id=126&atid=575 -- Alex Gutteridge