How to config textmate to use ruby1.9

Z

Zhijie Wu

Hi all:
I installed textmate1.5.9 and ruby 1.9.2 on my OSX SL.
Now I met a problem when i use command-R to run my ruby script in
textmate. It always refers to ruby 1.8 to run the script.I searched some
methods in internet to resolve the problem.I tried to set var
TM_RUBY=/usr/local/bin/ruby.But this can't help.I also run
/usr/local/bin/ruby -v in shell.He tells me that he is ruby 1.9! Then
how can i do now?

I am a newbie in this forum. Can anyone help me ? Thanks. And say sorry
for my poor English.
 
V

Vicente Bosch Campos

Hi,

I think you need to modify the PATH variable inside the preferences =
dialog.

TextMate Menu -> Preferences -> Advanced Tab -> Shell Variables Sub Tab =
and add the PATH variable adding to it the path to your ruby 1.9.2

I think there might be a cleaner way to do this... but it works for me.

Kind regards,
V.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top