<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">charles, if you create a new user account and try a simple python or ruby file in textmate does it work?<DIV><BR><DIV><DIV>On Apr 24, 2007, at 8:53 AM, charles snyder wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">______________________________________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(threading gets destroyed and the universe will collapse if you don't)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>