osx - How do I change the Ruby version Textmate uses? -


edit: found solution this, can read in answer bellow.

i using textmate on snow leopard, , have installed ruby 1.9. problem reason textmate uses ruby 1.8.2

but when use irb, or run ruby scripts shell, proper version of ruby (1.9) used.

how can configure textmate uses 1.9.2?

i've been googling , apparently have use t_ruby variable , textmate, , set environment variable in osx, far none of methods i've found works me.

could give step step solution problem?

update: tried adding ruby binary path tm_ruby in textmate, , error:

> can't find > “/users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > /users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > /users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > ” on path. theme: current path is: > /usr/bin /bin /usr/sbin /sbin please > add directory containing > “/users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > /users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > /users/myname/.rvm/rubies/ruby-1.9.2-p180/bin/ruby > ” path in textmate's shell > variables preferences. 

if use rvm, maybe can try type:

> rvm-auto-ruby /users/eddie/.rvm/bin/rvm-auto-ruby 

and set path shell variable named "tm_ruby" in textmate perferences screenshot

http://dl.dropbox.com/u/6931090/downloads/textmate-preferences.png

hope helps :)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -