title: How to solve "/usr/bin/env: ruby_executable_hooks: No such file or directory"?
body: <p>I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error:</p>
  
  <pre><code>remote: /usr/bin/env: ruby_executable_hooks: No such file or directory
  </code></pre>
  
  <p>I searched for a while, and tried the method proposed in this post: <a href="https://stackoverflow.com/questions/18936933/bundle-update-env-ruby-executable-hooks-no-such-file-or-directory">bundle update: env: ruby_executable_hooks: No such file or directory</a>, i.e., executing the commands below:</p>
  
  <pre><code>rvm @global do gem regenerate_binstubs
  gem regenerate_binstubs
  </code></pre>
  
  <p>But it doesn't help, the error remains. Since I'm not familiar with rvm or ruby, could anyone give me a hint?</p>