# Something about Homebrew install ruby

**URL:** <https://www.ruby-forum.com/t/something-about-homebrew-install-ruby/187141>\
**Category:** Rails\
**Created:** [April 18, 2010, 11:24am UTC](https://www.ruby-forum.com/t/something-about-homebrew-install-ruby/187141 "2010-04-18T11:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang\_zaac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ecccb3/32.png) [@yang\_zaac](https://www.ruby-forum.com/u/yang_zaac)\
**Post date:** [April 18, 2010, 11:24am UTC](https://www.ruby-forum.com/t/something-about-homebrew-install-ruby/187141/1 "2010-04-18T11:24:47Z")

</div>

I installed the ruby1.8.7 by macports.  
Yesterday, I updated the ruby into 1.9.1 by homebrew.  
But when I show the version (ruby -v),It still is 1.8.7. So I use brew  
link ruby,and replace the /opt/local/bin/ruby by /usr/local/Cellar/  
ruby/1.9.1-p378/bin/ruby. It works. But command “ri” is not work yet.

Is there any way to use the ruby installed by homebrew?

,sorry for my english
