I got the following error today when I tried to run a TextMate command in the GTD2 bundle:
/tmp/temp_textmate.P3vuHw:4:in `require': No such file to load -- erb (LoadError) from /tmp/temp_textmate.P3vuHw:4
I've been playing around with my ruby installation, but it seems to be running fine (1.8.6). I can run a script with "require 'erb'" from within TextMate, so I don't think that ruby is the problem. I also checked to make sure that I haven't changed the code for the command, but it checks out as the most current in svn.
Any idea what's going on? Thanks.
Mike
On Sep 5, 2007, at 5:09 PM, Mike Mellor wrote:
I got the following error today when I tried to run a TextMate command in the GTD2 bundle: [...]
Has the command worked before?
I've been playing around with my ruby installation, but it seems to be running fine (1.8.6) [...]
So this is a custom install of Ruby -- is the default version 1.6 (i.e. you being on Panther)? Cause that would explain it.
See http://macromates.com/wiki/Troubleshooting/RubyVersionIssue
On Sep 5, 2007, at 8:31 PM, Allan Odgaard wrote:
Yes, I'm not sure if was working just before I reinstalled Ruby or not, but it has been working.
No, I'm on the latest (10.4.10) and Ruby 1.8.6.
I'm thinking about either reinstalling TextMate, or maybe just the bundles. Hopefully there is a better solution. Thanks.
Mike
On Sep 5, 2007, at 8:31 PM, Allan Odgaard wrote:
Well, I got things working again, but I'm a little confused as to how to really fix the problem. What I found was that my commands the began #!/usr/bin env ruby were failing to execute. Changing the first line to #!/usr/local/bin/ruby works. It's not a TextMate issue, but a problem with my system (that I need to figure out). Thanks for the help.
Mike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Mike Mellor wrote:
Are you sure it was #!/usr/bin env ruby? Because it should be #!/usr/bin/env ruby (note the slash).
Does "/usr/bin/env ruby" work in the Terminal? What does "echo $PATH" print?
Simon - -- + privacy is necessary + using http://gnupg.org + public key id: 0x6115F804EFB33229
On 9/6/07, Simon Ruderich simon@ruderich.com wrote:
Yeah, it was /usr/bin/env (fat fingers and early mornings don't mix)! echo $PATH looks ok (/usr/local/bin is before /usr/bin) I'll try it /usr/bin/env ruby tonight. Thanks.
Mike
On 9/6/07, Michael Sheets mummer@whitefalls.org wrote:
Sure enough, no file found. I created the file, restarted everything, and all is well again! Thanks.
Mike
On Sep 7, 2007, at 10:07 PM, Mike Mellor wrote:
Just for the records, the reason this file is necessary, is to have TM use your custom installed Ruby, and the reason that is necessary, is because it sounds like you broke your default install.
You can e.g. try (from Terminal): /usr/bin/ruby -rerb -e 'puts :foo'