Changing my Ruby path to use a fresh install

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

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

Ahh many thanks,
Got it going now.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs