Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save jkeefe/07fcc8c979091eaa46a1 to your computer and use it in GitHub Desktop.

Select an option

Save jkeefe/07fcc8c979091eaa46a1 to your computer and use it in GitHub Desktop.
Fixing Textmate2 Ruby Bundle in Yosemite (Mac OSX 10.10)
Using the Command-/ function to comment something out in Textmate2, I got the error:
interpreter failed: No such file or directory
After some investigation, I realized that Yosemite is using Ruby 2.0 and the bundle here needed Ruby 1.8.
I use RVM to manage my Ruby virtual enviroments, and already had added a Ruby 1.8 into my collection.
(Look at the RVM docs to see how.) So the shell command:
which ruby
Got me:
/Users/johnkeefe/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
With some investigation into the "rubies" directory in that path, I found ruby-1.8.7-p374.
So back in Textmate2, I forced the error again and clicked the "Edit Command" button.
I then changed the first line of the bundle script from ...
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
to ...
#!/Users/johnkeefe/.rvm/rubies/ruby-1.8.7-p374/bin/ruby
And it worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment