Greetings all,
I'm getting this: interpreter failed: No such file or directory When using cmd-/ to add comments.
It's happening in various language formats.
I've tried some of the ruby path type solutions, but I'm not having any luck.
Could someone point in the right direction to investigate this.
Dan J.
======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan@solidether.net http://www.solidether.net
On 6/3/2006, at 19:32, Daniel Jewett wrote:
I'm getting this: interpreter failed: No such file or directory When using cmd-/ to add comments.
That would indicate that there was a problem loading /usr/bin/env.
Could you try to select these two lines in TextMate and press ctrl-R, and quote the result:
#!/usr/bin/env sh echo test
And these two:
#!/bin/sh echo test
If you do get a failure for the first, please also try (from either Terminal or TextMate):
ls -l /usr/bin/env
On Tue, 7 Mar 2006 16:33:45 +0100, Allan Odgaard wrote this well considered message:
That would indicate that there was a problem loading /usr/bin/env.
Could you try to select these two lines in TextMate and press ctrl-R, and quote the result:
#!/usr/bin/env sh echo test
Result: echo testtest
And these two:
#!/bin/sh echo test
Result: echo test test
If you do get a failure for the first, please also try (from either Terminal or TextMate):
ls -l /usr/bin/env
Result: -r-xr-xr-x 1 root wheel 13892 Mar 20 2005 /usr/bin/env
This looks correct to me, no? Dan J.
======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan@solidether.net http://www.solidether.net
On Wed, 8 Mar 2006 05:16:40 +0100, Allan Odgaard wrote this well considered message:
Yes -- could you try e.g. HTML -> Convert Selection to Entities? This is also a Ruby script started similiar to the Toggle Comment.
That command works like a charm. Maybe I'm looking at "time to clean out preferences and reinstall?"
======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan@solidether.net http://www.solidether.net
On 8/3/2006, at 19:52, Daniel Jewett wrote:
Yes -- could you try e.g. HTML -> Convert Selection to Entities? This is also a Ruby script started similiar to the Toggle Comment.
That command works like a charm. Maybe I'm looking at "time to clean out preferences and reinstall?"
I don’t see this as preferences related. Basically TM just calls execve() with the interpreter specified in the script, and it is this function which fails. No preferences should affect it.
However, could you verify that the first line of the script actually has:
#!/usr/bin/env ruby
The script can be found via Window -> Show Bundle Editor, and then opening the Source bundle and clicking the Comment Line / Selection item.
You may want to try and change it, to see if this also gives an (interpreter) error:
#!/usr/bin/ruby
On Wed, 8 Mar 2006 23:09:06 +0100, Allan Odgaard wrote this well considered message:
I don’t see this as preferences related. Basically TM just calls execve() with the interpreter specified in the script, and it is this function which fails. No preferences should affect it.
However, could you verify that the first line of the script actually has:
#!/usr/bin/env ruby
The script can be found via Window -> Show Bundle Editor, and then opening the Source bundle and clicking the Comment Line / Selection item.
You may want to try and change it, to see if this also gives an (interpreter) error:
#!/usr/bin/ruby
Allan, I just want to say thanks for following through on this for me.
I am somewhat chagrined to report that the shebang line was in fact, #!/opt/local/bin/ruby which must have been left from when I was using Darwin Ports. And which I must have changed my very own self. Ouch.
I apologize for taking so much of your time, but again, I really appreciate your help.
Regards, Dan J.
======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan@solidether.net http://www.solidether.net