Rails: Could not find railties

前端 未结 11 1531
[愿得一人]
[愿得一人] 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 09:03

    Simone's answer is great. However, if you already have your Rails gem in your Gemfile, just try to use bundle exec instead:

    bundle exec rails c
    

    And that should suffice. If not, then add

    bundle install
    

    before the mentioned command.

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

    Worked for me

    rvm reinstall 1.9.3
    

    then

    gem install rails
    
    0 讨论(0)
  • 2020-11-28 09:05

    I also had this issue after I installed ZSH (Wanted to mess with it's templates.)

    Ran

    brew update
    

    which did find some updates I wasn't missing before, but in the end

    gem install rails
    

    suddenly completely re-installing the rail/ties system. Unsure why ZSH removed it.

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

    I ran into the same problem and, in my case, it turned out to be because I had installed using sudo - it does not necessarily make rails available to ordinary users. Try running just gem install rails if you previously ran sudo gem install rails.

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

    I did 'gem install rails' on my system (ubuntu) and it installed the missing gems approx 28 of them then i did 'gem list' to check and it was all there.

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