# Changing my Ruby path to use a fresh install

**URL:** <https://www.ruby-forum.com/t/changing-my-ruby-path-to-use-a-fresh-install/71458>\
**Category:** Rails\
**Created:** [October 9, 2006, 3:18am UTC](https://www.ruby-forum.com/t/changing-my-ruby-path-to-use-a-fresh-install/71458 "2006-10-09T03:18:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cammo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@cammo](https://www.ruby-forum.com/u/cammo)\
**Post date:** [October 9, 2006, 3:18am UTC](https://www.ruby-forum.com/t/changing-my-ruby-path-to-use-a-fresh-install/71458/1 "2006-10-09T03:18:44Z")

</div>

Have installed Ruby using Darwin Ports and want to change my path to  
use it. Where do I change this, and what do I type? I’m not a Unix  
genius, but it’s located:  
/opt/local/bin/

if I run the command  
$which ruby

I get returned /usr/bin/ruby which is the standard install, and I’m  
having issues with it and readline. So I want to change it to the new  
version???

Help…

Thanks.  
Cammo

---

<div class="post-metadata">

**Author:** ![cammo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@cammo](https://www.ruby-forum.com/u/cammo)\
**Post date:** [October 10, 2006, 1:22pm UTC](https://www.ruby-forum.com/t/changing-my-ruby-path-to-use-a-fresh-install/71458/2 "2006-10-10T13:22:25Z")

</div>

You have to move /opt/local/bin before /usr/bin in your PATH environment  
variable. For bash, do something like export  
PATH="/opt/local/bin:/usr/bin…" and for tcsh it should be setenv.

Or you can make a symlink like this: ln -s /opt/local/bin/ruby  
/usr/bin/ruby

Vish

---

<div class="post-metadata">

**Author:** ![cammo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@cammo](https://www.ruby-forum.com/u/cammo)\
**Post date:** [October 11, 2006, 12:39am UTC](https://www.ruby-forum.com/t/changing-my-ruby-path-to-use-a-fresh-install/71458/3 "2006-10-11T00:39:18Z")

</div>

Ahh many thanks,  
Got it going now.
