DEV Community

jeann
jeann

Posted on

Install Rails in Ubuntu

I love rails because is realty the best framework that i was worked, but install it not is easy, here i show my experiency

Step 1: Install Languague Ruby -> sudo apt install ruby

Step 2: Install from Ubuntu the Gem -> sudo apt install gem

Step 3: Update Gem -> gem update --system

Step 4: Install RubyOnRails - > gem install rails

Step 4.1: If the instalation give you this: zlib is missing; necessary for building libxml2 them
install this librarie: zlib1g-dev with this line command -> sudo apt-get install zlib1g-dev

Step 4.2: If see this error -> ERROR: Error installing rails:
ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri

then run it this line command -> sudo apt-get install ruby-dev

Ths Last Step: For rails test, you would used this line: rails --version.

Show it something like this: Rails 5.1.4

See soon!

Latest comments (0)