From: 7stud -- Date: 2011-07-14T17:15:24+09:00 Subject: Re: ruby 1.9 mac install problems Thanh Pham wrote in post #1010631: > On Thu, Jul 14, 2011 at 1:07 PM, Marshall Farrier > wrote: >>>> things around so that I can code in 1.9 (without messing anything up >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > If you install ruby 1.9 via Macports using the command "port install > ruby19", the ruby's binaries will have the 1.9 suffix e.g. ruby1.9, > irb1.9, etc. > In other words, your system's ruby software is called 'ruby', and the ruby software you just installed is called 'ruby1.9'. To check the version of the program named 'ruby1.9': $ ruby1.9 -v and to run your ruby programs you have to type: $ruby1.9 your_program.rb The easiest thing to do is set up an alias for 'ruby1.9', e.g. 'r'. Then you can run your programs with less typing, like this: $r your_program.rb or check the version like this: $r -v It's my understanding that Terminal checks the file ~/.bash_profile before starting up, so you can put your aliases in there. If the file doesn't exist (and it probably won't) then create it. The ~/.bash_profile file is where I have my PATH set: export PATH=/Users/me/Downloads/rails_downloads/MacVim-7_3-53:$PATH and at the bottom of the file I have the line: source ~/.bashrc which I think makes Terminal also read what's in the file ~/.bashrc before starting up. I actually have my aliases in .bashrc. If you need a good editor, spend a few minutes learning vim by typing: $vimtutor If you like what you see, then you can install Macvim and the vividchalk colorscheme for a great combo. -- Posted via http://www.ruby-forum.com/.