bundler_wrapper
Long ago I installed and tried out rubygems-bundler. Unfortunately, I didn’t follow the instructions when I uninstalled it. So for months, I’ve been plagued with this error:
env: bundler_wrapper: No such file or directory
I’ve managed to get around it but never quite knew what was causing it or where to look to fix it. Google didn’t help me this time.
This time, it was happening when I tried to perform rake db:test:prepare. Eventually, I figured out that I needed to remove this line from my ~/.gemrc file:
custom_shebang: $env bundler_wrapper
Then I reinstalled rake (uninstall/install) and the problem finally went away.