I\'m trying to install Ruby on Ubuntu 16.04. However when I enter to following command to terminal:
$ \\curl -sSL https://get.rvm.io | bash -s stable --ruby
After trying many ways. I did succeed to install rails as follows:
$ \curl -sSL https://get.rvm.io | bash
$ source /home//.rvm/scripts/rvm
$ rvm -v
$ rvm install ruby
$ ruby -v
$ sudo apt-get install rubygems
$ gem update
$ sudo apt-get install ruby-dev zlib1g-dev liblzma-dev build-essential patch
$ rvm gemset list
$ gem install rails
$ rails -v
Where "user" is my username