Thursday, May 5, 2016

Installing Rails

1. Before we move forward with installing Rails, take a moment to check for updates to the Ruby gems with the following command:

# gem update

2. And then check for updates to the RubyGems software itself with the following command:

# gem update --system

3. Installing Rails is as easy as typing the following into the system console and pressing Return:

# gem install rails -v 4.2.6

The -v part of the command allows you to choose which version of Rails you would like to install (we installed 4.2.6 here). The system will install the Rails gems, which will take a few minutes or more.

4. Once Rails is successfully installed, use the following command to check the Rails version:

# rails -v

The system console should respond:

Rails 4.2.6

If it does, you have successfully installed Rails!


Previous post: Installing Java Development Kit (OpenJDK)

Next post: Setting up the MySQL database

1 comment:

  1. really Good blog post.provided a helpful information.I hope that you will post more updates like this
    Ruby on Rails Online Training

    ReplyDelete