problem with bundle

前端 未结 6 1719
醉梦人生
醉梦人生 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:23

    On my side, I am using rbenv.
    When I checked the /usr/local/bin/bundle, it shows it is using the older ruby, thus causing the problem.

    #!/usr/bin/ruby1.9.1
    

    by changing it to point to proper ruby fix the problem

    #!/home/user/.rbenv/shims/ruby
    

提交回复
热议问题