Could not find rails (>= 0) amongst [] (Gem::LoadError)

前端 未结 7 1907
你的背包
你的背包 2020-12-02 12:32

After installing rvm, updating .gmrc file, updating rubygems and running gem install rails -v \">=3.1.0rc\", I now seem to have a complete mess:



        
7条回答
  •  盖世英雄少女心
    2020-12-02 12:54

    I know this is a really old question but I just recently decided to move to RVM on a server I had setup a while ago and was having this same problem where gems were being installed in the wrong place and it was just messing everything up.

    After a few hours of crawling through SO, I finally figured out that in my .gemrc file in my root folder, I had previously setup the gemhome: and gempath: variables and they were messing with the whole system.

    After removing these lines, all my gems were working property.

    Just thought I would post my answer in case someone was in the same position.

提交回复
热议问题