rbenv and bundler: “bad interpreter: No such file or directory”

后端 未结 2 1696
礼貌的吻别
礼貌的吻别 2021-02-12 23:09

I messed up my configuration. I am running Ubuntu 14.04 and had some issues when I tried to move from a project to an other. I tried to uninstall and reinstall rbenv and then in

2条回答
  •  不思量自难忘°
    2021-02-12 23:22

    Find the bundle executable (in a non project directory - default system ruby) and delete it:

    which bundle

    rm

    Now go to your project directory, or switch to your ruby version and install bundler:

    gem install bundler

    Then execute rbenv rehash

    and now try executing bundle install and it should work. You will need to do this once for each ruby version installed.

提交回复
热议问题