Update your package manager first:
$ sudo apt-get update
This must finish without error or the following step will fail.
Install Curl:
$ sudo apt-get install curl
You’ll use Curl for installing RVM.
$ \curl -L https://get.rvm.io | bash
vi ~/.bashrc
# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
restart terminal.$ rvm get stable --autolibs=enable $ rvm install ruby $ rvm use 2.5.1 --defaultNodejs
$ sudo apt-get install nodejs
$ gem install bundler
$ gem install nokogiri
$ gem install rails
$ rails -v
$ rails new AppName
$ cd AppName
$ rails s
留言
張貼留言