Hi. I'm am new to Ruby on Rails and I'm trying to get my environment
up and running. I know that Ruby and Rails are pre installed on Mac
OS 10.5 but I was having some problems. I went and updated everything
with gem update --system, gem update, etc. However:
So RubyGems seems to be here with the latest and greatest version.
Something seems to be very out of sync here but I can't figure out
what.
I also tried downloaded rubygems 1.3.1 and installing it again but
that crashes:
[Macintosh:~/desktop/rubygems-1.3.1] jslicari% ruby setup.rb
./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 /sw/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
Here’s how to update gems and rails from a stock 10.5.6 client install
George
miniTorrent:~ geo$ gem -v
1.0.1
miniTorrent:~ geo$ rails -v
Rails 1.2.6
miniTorrent:~ geo$ sudo gem update --system
Password:
Updating RubyGems…
Bulk updating Gem source index for: http://gems.rubyforge.org
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.1
1 gem installed
Updating version of RubyGems to 1.3.1
Installing RubyGems 1.3.1
[…]
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.1 ri into /Library/Ruby/Gems/1.8/doc/rubygems-1.3.1/ri
Installing rubygems-1.3.1 rdoc into /Library/Ruby/Gems/1.8/doc/rubygems-1.3.1/rdoc
I'm thinking I should just uninstall everything and start over from
scratch as something is is obviously out of whack here. I'm not sure
how to uninstall completely though and really make sure everything is
gone.
So how would I remove it by hand and verify it is all gone?