[TxMt] Re: Simple question re. running a Ruby program
mkb_cbr at mac.com
Tue Jan 10 23:52:01 UTC 2012
You've got two options here. The quick and dirty hacky way is to set TM_RUBY to point at /Users/<you>/.rvm/rubies/ruby-1.9.2-p290. Boom. You're done.
However, this completely negates the utility of RVM. What happens when you have projects which rely on different Ruby versions? You are better off following the RVM instructions for integrating with TextMate:
As an off-topic tangent, it looks as though you may be mis-using RVM. If you are using RVM to install Ruby you are better off letting RVM manage your path for you. RVM nicely handles lots of cases you and I wouldn't think of until our stuff gets broken. If you follow the normal RVM setup instructions your path (and plenty of other stuff) will do the right thing as you move between projects.
On Jan 9, 2012, at 6:48 PM, Marc Chanliau wrote:
> I'm using Txmate 1.5.10 on Lion.
> I've always been able to run Ruby programs from within Txmate, now I can't. I've changed a few things in my set up, though, so that might be the reason (?).
> First I downloaded Ruby 1.9.2 from RVM and I modified my path in .profile as follows:
> export PATH
> Could that be the reason I'm having problems?
> textmate mailing list
> textmate at lists.macromates.com
More information about the textmate