bundle update: env: ruby_executable_hooks: No such

2019-01-17 23:39发布

问题:

Just updated rubygems-bundler from 1.2.2 to 1.3.0

Not sure, exactly, that this is the problem but now I'm getting these errors:

$ bundle update
env: ruby_executable_hooks: No such file or directory
$ bundle install
env: ruby_executable_hooks: No such file or directory

回答1:

please open a bug here: https://github.com/mpapis/executable-hooks/issues

as a temporary fix try:

rvm @global do gem regenerate_binstubs
gem regenerate_binstubs

Update 1:

As a fix for https://github.com/mpapis/executable-hooks/issues/6 version 1.2.1 of executable-hooks was released - it should fix the problem.

Update 2:

Folowing issues https://github.com/mpapis/executable-hooks/issues/7 https://github.com/mpapis/executable-hooks/issues/8 and finall fix in version 1.2.3 of executable-hooks



回答2:

Run the following command in the Terminal to refresh the executable-hooks to the latest version and fix the issue:

sudo gem install --user-install executable-hooks



回答3:

I had the same problem, but I have bundler, not rubygems-bundler, and my gem doesn't recognise regenerate_binstubs.

rvm all-gemsets do gem update bundler installed bundler 1.7.11 and fixed it for me.