bundler/setup (LoadError)

后端 未结 2 926
我在风中等你
我在风中等你 2020-12-10 00:35

I cloned a repository and tried to run rails s. However, I received the following error:

/Users/me/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/rub         


        
相关标签:
2条回答
  • 2020-12-10 01:05

    On the mac, it is possible that you installed gems to ./vendor/bundle in order to avoid to use SUDO. You can find it if you run gem install bundler and at the end of the output you see the following:

    Using turbolinks-source 5.1.0
    Using turbolinks 5.1.0
    Using uglifier 4.1.4
    Bundle complete! 13 Gemfile dependencies, 68 gems now installed.
    Bundled gems are installed into `./vendor/bundle`
    

    If this is the case than in your app root directory delete the bundle directory. After this run the following commands:

    [sudo] gem install bundler
    bundle install
    

    It solved the problem for me

    0 讨论(0)
  • 2020-12-10 01:21

    You likely have bundler gem missing.

    To get it to work run (first command may need be executed with sudo, depending on your environment):

    [sudo] gem install bundler
    bundle install
    
    0 讨论(0)
提交回复
热议问题