problem with bundle

前端 未结 6 1791
醉梦人生
醉梦人生 2021-01-02 11:50

I try command bundle install --local but it show issue:

-bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or dir         


        
6条回答
  •  忘掉有多难
    2021-01-02 12:28

    The solution that worked for me was entirely different, perhaps because I've been inconsistent about using RVM or not.

    I used 'which bundler' to find out where bundler was being launched, it was from /usr/bin/bundler. Noticing that /usr/bin/bundler began with a location and version of ruby that did not exist on my system any more, I did

    gem uninstall bundler
    gem install bundler
    

    Checking 'which bundler' again confirmed that bundler was now installed within a .rvm environment instead of /usr/bin/bundler, and now references the correct version of ruby; so bundle install now works for my rails project.

提交回复
热议问题