How to Solve "/Usr/Bin/Env: Ruby_Executable_Hooks: No Such File or Directory"

How to solve /usr/bin/env: ruby_executable_hooks: No such file or directory?

use wrappers, example:

$ which jekyll
# /path/to/rvm/gems/ruby-version/bin/jekyll

in the returned path replace bin with wrappers so you get:

/path/to/rvm/gems/ruby-version/wrappers/jekyll

this is a script that will load proper environment and fix your problem, wrappers are generated automatically withing RVM.

env: ruby_executable_hooks: No such file or directory

You need to run the following command in the Terminal to refresh the executable-hooks to the latest version. That should take care of the issue.

sudo gem install --user-install executable-hooks

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

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



Related Topics



Leave a reply



Submit