Running “bundle install” fails and asks me to run “bundle install”

前端 未结 2 529
余生分开走
余生分开走 2021-02-15 08:55

In fact, all gem-related commands result in the same error message, when run from inside the existing rails app I cloned from a git repo.

$ bundle install
Could          


        
相关标签:
2条回答
  • 2021-02-15 09:18

    OK guess I fixed it..

    For the gems that running bundle install complained about when run from inside the app directory, I installed them by going outside the app directory and doing sudo gem install [gem] one by one. Doing bundle install --gemfile=myApp/Gemfile also installed a couple of the missing gems.

    I have no idea why I wasn't able to just run bundle install from inside the app directory...lame.

    0 讨论(0)
  • 2021-02-15 09:31

    I had this problem. Once I did:

    [root@smaug ~]# PATH=$PATH:~/.gem/ruby/2.0.0/bin

    [root@smaug ~]# export PATH

    Then it was fixed and I could just

    [root@smaug msf3]# bundle install

    successfully.

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