If you are familiar with Mac X, probably you heard about DarwinPorts ("The DarwinPorts Project's main goal is to provide an easy way to install various open-source software products"). If you are interested in Ruby, you probably know that Mac X Tiger comes with pre-installed Ruby 1.8.2. Nevertheless, using DrawinPorts you can install more newer version of Ruby (1.8.4) just by writing:
Unfortunately after the installation you will have two Ruby's in your systems, and your xterm console by default will use the first one. In order to use second one, the PATH environmental variable must be slightly change i.e. putting directory
sudo port install ruby
.Unfortunately after the installation you will have two Ruby's in your systems, and your xterm console by default will use the first one. In order to use second one, the PATH environmental variable must be slightly change i.e. putting directory
/opt/local/bin
(DarwinPorts default directory) before every other directory in PATH. As a results programs in /opt/local/bin
will have priority over the other programs.To change the path you can execute just:
export PATH=/opt/local/bin:$PATH