How to Setup Ruby on Rails for CentOS/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 RoR environment!
  • payment
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install and Run UnixBench on CentOS or Debian VPS

  UnixBench is a popular server benchmarking tool. To install and run UnixBench, just do the...

How to Update cPanel License Key / Run License Script

To run the cPanel License Key update script (perhaps if you've upgraded from a trial license, or...

How to Update VPS Timezone (OpenVZ)

Your OpenVZ will reflect the host server's time settings by default; however, it is possible to...

How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

This tutorial will guide you through the installation of libtorrent 0.13.0, rTorrent 0.9, and the...

How to Install Webmin on CentOS or Debian VPS

Webmin is a free web hosting control panel compatible with most Linux distributions. To install...