| Home » Categories » Multiple Categories |
How To Install Ruby on Rails on CentOS 6 |
|
Article Number: 235 | Rating: Unrated | Last Updated: Tue, Sep 23, 2025 at 11:12 PM
|
| Ruby on Rails is an application stack that provides web developers with a framework to quickly create a variety of web applications. There are three separate processes required to install Ruby on Rails: you need to install Ruby, then the Ruby Gems, then Rails. Set UpThe steps in this tutorial require the user to have root privileges. You can see how to set that up in the Initial Server Setup Tutorial in steps 3 and 4. Step One—Install RubyThe easiest way to install Ruby on your virtual server is through the yum package installer. sudo yum install ruby After you say yes to the prompt, Ruby will install. Then we need some additional Ruby dependancies. Type the following into terminal: sudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel sudo yum install ruby-rdoc ruby-devel While it processes, the prompt may ask your permission to install the various packages. Go ahead and say yes each time. Step Two—Install Ruby GemsOnce you have Ruby installed, you can easily install the ruby gems. Type this command into terminal: sudo yum install rubygems After you have agreed to the prompt, ruby gems should be installed. However, if you have any issues with this process, you can use an alternate method to install the Ruby Gems. How to Install RubyGems from SourceIf, for some reason, the yum installer doesn’t work for you, you can follow these steps to install ruby gems from the source. To start, we will create a new directory to store the ruby code. sudo mkdir ~/src sudo cd ~/src Then we can go ahead and download the ruby gems into the new folder. (You can always access the latest available gems by visiting: http://rubygems.org/pages/download) wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz?tar -zxvf rubygems-1.3.6.tgz cd rubygems-1.3.6 Finally you are ready to install the ruby gems. sudo ruby setup.rb After you answer yes to the prompt, the gems will finish installing. You will now be ready to install Rails on your virtual server. Step Three—Install RailsWe should quickly do two updates to makes sure that everything is up-to date and set up correctly: Check the gems: sudo gem update Then check the system overall: sudo gem update --system Once everything has processed, it is time to install Rails. To start, open terminal and type in: sudo gem install rails This process may take a while, be patient with it. If you are feeling especially antsy, you can type in: sudo gem install rails -V Terminal will then show you all the details of the process, so you can see that it is working. After you answer yes to the prompt that comes up, rails will finish installing. You have successfully installed Ruby on Rails! |
Attachments
There are no attachments for this article.
|
How To Set Up Python 2.7.6 and 3.3.3 on CentOS 6.4
Viewed 7792 times since Sat, Jan 4, 2014
How To Set Up ProFTPD on CentOS 6
Viewed 3386 times since Thu, Jan 2, 2014
How to Setup Additional Entropy for Cloud Servers Using Haveged
Viewed 2906 times since Sat, Jan 4, 2014
How To Install cPanel on a Virtual Server Running Centos 6
Viewed 3037 times since Thu, Jan 2, 2014
How to Deploy Python WSGI Applications Using a CherryPy Web Server Behind Nginx
Viewed 4063 times since Mon, Dec 23, 2013
How To Deploy Node.js Applications Using Systemd and Nginx
Viewed 9955 times since Sat, Jan 4, 2014
Top 10 Linux Easter Eggs
Viewed 7713 times since Sat, Jan 4, 2014
How to Setup a Multi-Protocol VPN Server Using SoftEther
Viewed 9947 times since Thu, Jan 2, 2014
How To Create Nagios Plugins With Bash On CentOS 6
Viewed 3845 times since Sat, Jan 4, 2014
How To Install Ruby on Rails on Arch Linux with RVM
Viewed 14231 times since Sun, Dec 29, 2013
|
