Rails: Could not find railties

前端 未结 11 1530
[愿得一人]
[愿得一人] 2020-11-28 08:10
➜  ~  rvm -v

rvm 1.10.2 by Wayne E. Seguin , Michal Papis  [https://rvm.beginrescueend.com/]

➜  ~  ruby -v
ru         


        
相关标签:
11条回答
  • 2020-11-28 08:53

    Maybe you installed two or more version of rails and railties.

    gem uninstall railties
    gem uninstall rails
    

    then reinstall.

    0 讨论(0)
  • 2020-11-28 08:55

    I ran into this same issue. If you're using RVM it's possible you switched to the wrong Ruby version which causes a gem load error if the directory uses a different version than the one you are currently set to use.

    To fix, type rvm use -yourrubyversion in the app's directory in terminal. For example, if your app is set up to use ruby 1.9.3 type rvm use -1.9.3.

    RVM works by separating your gems by ruby version by app, so if you switch to a different ruby version RVM will separate previously used and installed gems from the different ruby version, which is why you may be seeing tho issue.

    0 讨论(0)
  • 2020-11-28 08:55

    Uninstalling ruby, and railsinstaller and then installing railsinstaller again worked great for me!

    0 讨论(0)
  • 2020-11-28 08:56

    I got the same error when I installed ruby 1.9.3p194

    and then I reinstalled ruby and rails

    0 讨论(0)
  • 2020-11-28 09:03

    It means your Rails installation is corrupted or incomplete. If you list your gems, chances are you won't find railties

    $ gem list
    

    Run the command

    $ gem install rails
    

    again. It will download and install missing dependencies, including railties.

    0 讨论(0)
  • 2020-11-28 09:03

    rvm implode was the answer. Something probably went wrong before, now everything works after a rvm reinstall.

    0 讨论(0)
提交回复
热议问题