Thanks<br><br>In both cases (w + wo shebang):<br><br>/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:
<br><br>I did read and try the page Alex referenced above, and did the following:<br><br>1. created a <code>~/.bash_profile</code> with<br><font size="4"><br></font><pre><font size="4"><code>[ -f /etc/profile ] && . /etc/profile
<br>[ -f ~/.bashrc ]    && . ~/.bashrc<br><br>export PATH="$HOME/bin:/opt/local/bin:$PATH"<br><br>2. Set the default shell on the computer to be bash<br><br>3. I did not yet try the </code><a href="http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982">
<code>~/.MacOSX/environment.plist</code></a> but will do that next<br><br>I installed ruby 1.8.5 via darwin ports, but did not delete the 'factory' ruby previously present, but <br>ruby -v gives 1.8.2 <br>In the terminal (or iterm) I can do sudo gem install fastercsv, and it works, then if I irb> require 'faster_csv'
<br>it can't find it.<br>However, running <br>print "Hi there" from temp.py in Textmate gives me:<br><br>/bin/bash: line 4: Tue Apr 24 10:23:28 CDT 2007 /usr/local/bin/ruby:<br><br>(yes, it says ruby)<br><br>
I may try to <br><br>Plan A : reinstall textmate<br>Plan B: reinstall tiger osx + shoot self</font><br><br><code></code></pre><br><br><div><span class="gmail_quote">On 4/24/07, <b class="gmail_sendername">Matt Neuburg</b>
 <<a href="mailto:matt@tidbits.com">matt@tidbits.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 4/23/07 7:01 PM, in article
<br><a href="mailto:fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com">fa09ca6d0704231901l8dea2e3n46d3ffa049dda2b4@mail.gmail.com</a>, "charles snyder"<br><<a href="mailto:clsnyder@gmail.com">clsnyder@gmail.com
</a>> wrote:<br><br>> I can run programs from the command line (with some weird behavior)<br><br>Well, personally, I'm mystified.<br><br>I guess what I'd like to know is:<br><br>(1) what happens if you make a new TextMate doc, type
<br><br>  puts "hello"<br><br>type shift-control-option-R 2 (to change it to Ruby) and command-R<br><br>(2) what happens if you add a shebang line at the start and do the same<br><br>(3) what weird behavior at the command line? Can you give an example? What
<br>happens if you just say ruby --version?<br><br>m.<br>--<br>matt neuburg, phd = <a href="mailto:matt@tidbits.com">matt@tidbits.com</a>, <<a href="http://www.tidbits.com/matt/">http://www.tidbits.com/matt/</a>><br>
A fool + a tool + an autorelease pool = cool!<br>AppleScript: the Definitive Guide - Second Edition!<br><<a href="http://www.amazon.com/gp/product/0596102119">http://www.amazon.com/gp/product/0596102119</a>><br><br>
<br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)
<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br>