Install Ruby IntroductionThis tutorial will show you how to install Ruby Version Manager (RVM) which can be used to install Ruby, and then RubyGems, which can be used to install the Ruby on Rails framework. Finally, we’ll create an empty application and see it run: | ![]() |
SSH to your Pod as root, and then run the following:
root@rubyserver:~# \curl -L https://get.rvm.io | bash -s stable root@rubyserver:~# source /etc/profile.d/rvm.sh root@rubyserver:~# rvm requirements root@rubyserver:~# rvm install 1.9.3 root@rubyserver:~# rvm use 1.9.3 --default root@rubyserver:~# rvm rubygems current root@rubyserver:~# gem install rails
The last step could take a few minutes to complete.
Once finished, you can test creating, and then running, a new application like this:
root@rubyserver:~# rails new Hello root@rubyserver:~# cd Hello root@rubyserver:~# rails server
Now, in your web browser, you should be able to go to http://youripaddress:3000/ and see the Ruby on Rails welcome screen.
Tags: centos, gem, keys, Programming Languages, ror, ruby, ruby on rails, rvm, Security, ssh