Skip to content

Instantly share code, notes, and snippets.

@ryanjm
Created February 24, 2010 16:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanjm/313609 to your computer and use it in GitHub Desktop.
Save ryanjm/313609 to your computer and use it in GitHub Desktop.
Issues with bad interpreter
Something else I found helpful along the way (as I had old stuff installed):
gem uninstall --install-dir /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 rails
zsh: /usr/local/bin/spec: bad interpreter: /usr/local/bin/ruby: no such file or directory
The issue is that my ruby isn't installed at /usr/local/bin/ruby but rather /usr/bin/ruby therefore I created a simlink.
zsh: /usr/local/bin/bundle: bad interpreter: /usr/local/bin/ruby: no such file or directory
% which ruby
/usr/bin/ruby
% cd /usr/local/bin/
/usr/local/bin% ln -s /usr/bin/ruby ruby
@sajadabedi
Copy link

I have this problem.
how to run fixed and run your command in terminal?

@wellington1993
Copy link

I have this problem, thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment