Ruby on Rails is one of the most popular web development framework, it’s build upon Ruby Programming Language, and it’s the hottest web development stack currently.
Rbenv is a shell script tools created by Sam Stephenson. It’s used for groom your app’s Ruby environment.Use rbenv can pick a Ruby version for your application and guarantee that your development environment matches production.
rbenv works by inserting a directory of shims at the front of your PATH:
Through a process called rehashing, rbenv maintains shims in that directory to match every Ruby command across every installed version of Ruby—irb, gem, rake, rails, ruby, and so on.
CentOS is derived from Red Hat Enterprise Linux. The target users of these distributions are usually businesses, which require their systems to be running the most stable way for a long time.So we are going to use CentOS 6.5 running our applications.
Step One – Install dependencies
Before, installing any package, it’s always recommended to update package repository cache use yum.
sudo yum update
Now,in order to get necessary development tools and dependencies, run the following:
ExecJS supports these runtimes:
therubyracer – Google V8 embedded within Ruby
therubyrhino – Mozilla Rhino embedded within JRuby
Microsoft Windows Script Host (JScript)
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux(OEL).