After installing Ruby 1.8.7 on my shiny iMac, Textmate decided that it no longer knew where the Ruby environment was. Oh, it knew where Ruby was, and would run Ruby scripts just fine, but whenever I tried to use anything from any bundle, all I got was:

“env: ruby: No such file or directory”

Maddening.

Turns out I didn’t have a environment.plist file in my /Users/(username)/.MacOSX/ directory, and even though it worked just fine before without it, that was no longer the case.

Here’s where to get a nifty little Ruby script to build it and even stick it in the right place for you. Note, the file must already exist, so you’ll have to make a .MacOSX directory in your user directory, and create an empty file “environment.plist.”

Advertisements