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

天大地大妈咪最大 提交于 2019-12-03 02:20:17

问题


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/



来源:https://stackoverflow.com/questions/11391679/ubuntu-12-how-to-install-ruby-and-rails-correctly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!