How to do Installation of Ruby on Rails on Linux Ubuntu

0 votes
I want to install ruby on rails on my ubuntu 16.0 system. Please help with the steps.
Mar 1, 2019 in Others by Praharsh
1,902 views

1 answer to this question.

0 votes

Hi Pratibha, installing ROR on ubuntu is quite simple, just follow these installation steps and you will install ROR on your machine without any trouble:

1. Write the following commands one by one to install Ruby 2.6.1

>>curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
>>curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
>>echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

>>sudo apt-get update
>>sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn

>>git clone https://github.com/rbenv/rbenv.git ~/.rbenv
>>echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
>>echo 'eval "$(rbenv init -)"' >> ~/.bashrc
>>exec $SHELL

>>git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
>>echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
>>exec $SHELL

>>rbenv install 2.6.1
>>rbenv global 2.6.1

>>ruby -v

>>gem install bundler

2. To install Rails 5.2.2, write the following commands one by one on Ubuntu terminal:

>>curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
>>sudo apt-get install -y nodejs

>>gem install rails -v 5.2.2

>>rbenv rehash
>>rails -v

And that's it, the last command in above step will show you the installed version of rails on your system. 

answered Mar 1, 2019 by Anvi
• 14,150 points

Related Questions In Others

0 votes
1 answer

How do I install Ruby on Rails?

Hi @Anvi, what @Pratibha has mentioned is ...READ MORE

answered Mar 1, 2019 in Others by Abha
• 28,140 points
1,414 views
0 votes
1 answer

How do I get it to select a single row based on the value?

Try this: Sub MoveBasedOnValue2() Dim ...READ MORE

answered Jan 20, 2023 in Others by narikkadan
• 63,600 points
596 views
0 votes
1 answer

How To Copy/Cut Row of Data Based on TRUE/FALSE Condition [Excel VBA]

Solution Loop through the rows on the Price ...READ MORE

answered Feb 4, 2023 in Others by narikkadan
• 63,600 points
918 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,276 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,185 views
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

answered Mar 1, 2019 in Python by Pratibha
• 3,690 points
1,147 views
0 votes
1 answer

Golang on Linux... How to install it?

Hey @Abhi, if you want to install ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,150 points
991 views
0 votes
1 answer

How to run C# code on Ubuntu

Hey @Abha, you can create and run ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,150 points
6,470 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP