how to change ruby path from /usr/bin/ruby to /usr/local/bin/ruby

Posted by HelloWorld on Stack Overflow See other posts from Stack Overflow or by HelloWorld
Published on 2011-01-04T06:28:22Z Indexed on 2011/01/04 6:53 UTC
Read the original article Hit count: 1136

Filed under:

reading around the various ruby install tutorials it's required to change path from /usr/bin/ruby to /usr/local/bin/ruby but i cant seem to be able to do it. Ultimately i want to install Ruby 1.9.2, should i uninstall 1.8.7 or what? i tried to install Ruby 1.9.2 with macports, the installation seemed to go ok, but i cant find the new version, i seem to be stuck with 1.8.7

iMac:~ rebel$ which ruby
/usr/bin/ruby

rebel$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

.profile
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"

© Stack Overflow or respective owner

Related posts about ruby