Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu 12 - how to install Ruby and Rails correctly [closed]

I read a lot of articles regarding installing Ruby 1.9 and Ruby on Rails 3.2.3 on Ubuntu 12. And I've installed them previously. But it took much time, about 5 days. I made many mistakes and I was very tired of that.

Now I need to do it again. Obviously I want it to be effortless and correct. Like in Windows using Rails installer and Ruby installer.

Can anyone give me a link about how to install them correctly(!)? Or maybe you know the right way?

like image 607
Alexandre Avatar asked Jul 09 '12 08:07

Alexandre


People also ask

Which command is used to install rails on Ubuntu?

To install Rails, use the gem install command along with the -v flag to specify the version. For this tutorial, we will use version 5.2. 0 : gem install rails -v 5.2.

How do I install a specific version of Ruby Ubuntu?

Use RVM (Ruby Version Manager) to install and manage any versions of Ruby. You can have multiple versions of Ruby installed on the machine and you can easily select the one you want. And let it work. After that you will have RVM along with Ruby installed.


2 Answers

Follow this and enjoy

Install Ruby and Rails completely with chruby

like image 189
Kashiftufail Avatar answered Sep 22 '22 16:09

Kashiftufail


I would use RVM. I found it super easy to install and it maintains different per-user (or system-wide if you wish) gemsets for different projects.

like image 34
Omar Awile Avatar answered Sep 21 '22 16:09

Omar Awile