How to Setup Ruby on Rails on a CentOS or Fedora VPS

This tutorial will walk you through the setup of a basic Ruby on Rails environment, including:

 

  • Ruby 1.8.7
  • RubyGems 1.8.15
  • Rails 3.1.3
  • Sqlite3
This tutorial is intended for use on CentOS, Fedora, and other EL-based systems.
 
To begin, log in to your VPS via SSH and update your system:
# yum update
 
Install Ruby:
# yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri
 
Check the version installed:
# ruby -v
 
Install RubyGems:
# mkdir ~/sources
# cd ~/sources
# wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
# tar xzvf rubygems-1.3.1.tgz
# cd rubygems-1.3.1
# ruby setup.rb
 
Update RubyGems:
# gem update --system
 
Install Rails:
# gem install rails
 
Install Sqlite3:
# yum install sqlite-devel
# gem install sqlite3-ruby
 
Install Postfix and Subversion:
# yum install postfix subversion -y
 
You should now have a functioning and updated Ruby on Rails environment.

 

Was this answer helpful?

 Print this Article

Also Read

How to Install WHM/cPanel on RHEL or CentOS VPS

  To install cPanel, run the following commands while logged in to your VPS as the root...

Installing Linux Malware Detect on a VPS

This guide will walk you through installing LMD (Linux Malware Detect) on your VPS/Dedicated...

How to Install Nginx with Yum on a CentOS VPS

Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse...

Installing a VNC Server on your CentOS VPS

All of Bitronic Technologies come with one user VNC access pre-installed. However if you should...

Install nginx, MySQL, PHP (LEMP) stack on a CentOS 6 VPS

LEMP stack is a group of open source software to get web servers up and running. The acronym...