installing rails

tell me the best way to install rails on ubuntu 14.04. i taking the help from git page and others but still got same error.

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
this command is ok

curl -L https://get.rvm.io | bash -s stable

this says

root@system:/home/ankit# curl -L https://get.rvm.io | bash -s stable % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0curl: (7) Failed to connect to get.rvm.io port 443: No route to host

thanks

Can you open that web page in a browser (https://get.rvm.io)? If not
that suggests you cannot access that url for some reason. If you can
then try the curl again as it may have been a temporary problem.

Colin

To install ruby and ruby on rails you can follow these steps: https://gorails.com/setup/ubuntu/14.04

To install ruby and ruby on rails you can follow these steps:
https://gorails.com/setup/ubuntu/14.04

The section on using rvm shows the same command the OP has already tried,
which failed.

Colin

Get.rvm.io redirects to https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer
Perhaps you should give that a try.

still an errror

​Open the site (Get.rvm.io <http://get.rvm.io/>) in​ the browser. What
error do you get.

still an errror

You have not said whether you can access https://get.rvm.io in a browser

Colin

now i got this error

ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on your connection…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0
curl: (56) Recv failure: Connection reset by peer
There was an error(56).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
No fallback URL could be found, try increasing timeout with:

echo "export rvm_max_time_flag=20" >> ~/.rvmrc

There has been an error fetching the ruby interpreter. Halting the installation.

Have you tried opening the faulty URLs in your browser? What happens? Do you sit behind a proxy or a firewall?

now i got this error

ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on
your connection...
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:--
0
curl: (56) Recv failure: Connection reset by peer
There was an error(56).
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
Checking fallback:
http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

There has been an error fetching the ruby interpreter. Halting the
installation.

It seems to me you have some basic problems with internet access.

Colin

what do you mean by faulty url ?

i am not sitting in proxy or firewall

The both mentioned in your copied error message. But Colin is right, it seems like a general problem with your internet setup. That’s why I want you to try the URLs in your browser. If they work there, then there has to be some cause why it works on browser but not in the shell, and to find that reason will be hard without having access to your machine or at least know more about your overall network setup.