Getting Textmate to Recognize Ruby Version

I used the instructions http://bparanj.blogspot.com/2010/06/installing-ruby-191-on-snow-leopard.html to install Ruby version 1.92 on my Mac using Snow Leopard. The only deviation is in step 3, which requires updating .bash_profile. I have .profile but not .bash_profile in my home directory, so I added the export command to the last line of .profile. Installation completed successfully (with the same two warning messages that I mentioned that I didn’t take into account either), since Ruby -v prints on the terminal

ruby 1.9.2dev (2010-07-02 revision 28524) [x86_64-darwin10.4.0].

However, when I run Textmate, cntrl-R calls up Ruby version 1.8.7, as it was before installing 1.9.2. In the Textmate Preferences-Advanced-Shell options, the TM_RUBY variables are set to / usr / bin / ruby. The file "ruby" (binary alias) has not been updated. What is the easiest way for me to tell Textmate to use a newer version of Ruby? Please note that my understanding of OS X is relatively limited.

+3
source share
2 answers

What is the easiest way for me to instruct Ruby to use the new version of Ruby?

I suppose you mean, "What is the easiest way for me to tell Textmate to use a newer version of Ruby?"

, , TM_RUBY, ? , , - /usr/local ( , /usr/local/bin/ruby ).

, :

$ which ruby
/usr/local/bin/ruby

,

$ ruby -v

ruby, Textmate, "" TM_RUBY 1.9.2.

+2

.bash_profile ?

-1

Source: https://habr.com/ru/post/1758463/


All Articles