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
How to Generate a Random String in Ruby
How to Test If a String Is Basically an Integer in Quotes Using Ruby
The 'Json' Native Gem Requires Installed Build Tools
How to Parse Json With Ruby on Rails
What Is the Best Method of Handling Currency/Money
How to Update Ruby Gems from Behind a Proxy (Isa-Ntlm)
Difference Between Class Variables and Class Instance Variables
Ruby: String Comparison Issues
Difference Between \A \Z and ^ $ in Ruby Regular Expressions
Rvm Installation Not Working: "Rvm Is Not a Function"
Sudo Gem Install' or 'Gem Install' and Gem Locations
How to Track System-Specific Config Files in a Repo/Project
Weird Backslash Substitution in Ruby
What Exactly Is the Singleton Class in Ruby
Saving Enum from Select in Rails 4.1