I am trying to install rails using the following command:
sudo gem install rails
and get the following error:
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository ERROR: Possible alternatives: rails
I am using:
- Ubuntu 12.04 LTS
My Ruby version is ruby
1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
My gem version is
$gem -v 1.8.11
I have try some things that I found in the net like trying to update my gem version using the following command:
gem update --system
but it throws me un error again:
ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories. If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.
Could you advice what should i try?