How do I install Ruby gems when using RVM?

前端 未结 3 1995
忘掉有多难
忘掉有多难 2021-02-01 02:14

I set up RVM and used it to install Ruby and a few other libraries. As I was going through various tutorials and set-ups of other technologies like Rails, I began getting confus

3条回答
  •  梦如初夏
    2021-02-01 02:50

    No need to install rubygems. RVM should have already installed rubygems. RVM is (in my opinion) useful for managing different installations of ruby (say 1.8.7 and 1.9.2) or different gemsets. If you just have one version of ruby and don't care about different gemsets, RVM isn't really that much of a change. If you want to just install rails, just use gem install rails. If you have an existing rails 3 app, install bundler first gem install bundler and then bundle install to get rails and other gem dependencies.

提交回复
热议问题