I'm trying to install rails using
$ sudo gem install rails
But I get this error:
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://rubygems.org/quick/Marshal.4.8/activerecord-4.0.2.gemspec.rz
What am I doing wrong? do I have to use sudo apt-get install rails instead?
I have in my system
$ ruby -v
> 2.1.11
$ gem -v
> ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
I'm following these instructions
Solved
How did I solved it?
I followed this as Mitch advised me, but after sudo apt-get install ruby1.9.3
I got that ruby -v
showed ruby 1.8.7
So I did this and then I continue with
sudo gem install rails
it worked.
sudo gem install rails
it does nothing – Andres Dec 21 '13 at 20:56