Fresh Rails install won't use version 3.1

Hi,

I’m trying to install rails for the 1st time.

I can’t seem to get it to install beyond Rails 2.2.3.

I have followed the instructions at: http://rubyonrails.org/download

I downloaded the latest RubyGems and ran ‘ruby setup.rb’.

$ gem -v
1.8.11
I ran ‘gem install rails’ and got Rails 2.2.3.

I ran ‘gem update’ serveral times and I get:

$ gem update
Updating installed gems
Updating rails
Successfully installed rails-2.2.3
Gems updated: rails
Installing ri documentation for rails-2.2.3…
Installing RDoc documentation for rails-2.2.3…
I tried gem1.8:

$ gem1.8 update
Updating installed gems
Updating rails
Successfully installed rails-2.2.3
Gems updated: rails
Installing ri documentation for rails-2.2.3…
Installing RDoc documentation for rails-2.2.3…

$ rails -v
Rails 2.2.3

$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
I’m using Debian ‘unstable’ (Wheezy/Sid).

I’m new to rails and don’t understand what I’m doing wrong.
I’ve searched by so far nothing specific to this issue.

I thought the latsted gem would just get Rails 3.1 just as the install
docs at the site say?

Any advise much apprecited.

Thanks!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 25.11.2011 01:44, schrieb Red:

I thought the latsted gem would just get Rails 3.1 just as the
install docs at the site say?

Any advise much apprecited.

Please run gem sources -l and make sure http://rubygems.org/ is in
the list. Probably your list of sources is outdated?

Also I would encourage you to use rvm[1] in the future it will make
your life much easier.

HTH
Norbert

[1] https://rvm.beginrescueend.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7P0JIACgkQW6QSU1GdvayXQgCeK/xztiKtbYRj/HNu7wsvVgdA
pk0AoInix7SF8YUJ3lMA+iTVnbqSTLMH
=zPFN
-----END PGP SIGNATURE-----

Just run railsready (https://github.com/joshfng/railsready) on a fresh
linux installation, and you’re done.

Dheeraj K.