Ubuntu 12 - how to install Ruby and Rails correctl

2019-03-08 08:26发布

问题:

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?

回答1:

Follow this and enjoy

Install Ruby and Rails completely with chruby



回答2:

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.



回答3:

I always prefer rvm for installation of ruby and rails.

Here some very useful articles which guide you how to install ruby, rails using rvm.

1) http://coding.smashingmagazine.com/2011/06/21/set-up-an-ubuntu-local-development-machine-for-ruby-on-rails/

2) http://hivelogic.com/articles/setup-guide-rails-stack-with-passenger-rvm-bundler-apache-and-mysql-on-ubun/