Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To use a specific ruby version if you have two versions installed you can either specify an absolute path to the one you want. E.g. /your/path/to/ruby Or you can change your PATH setting in your .profile</p> <p>you can type</p> <pre><code>which ruby </code></pre> <p>to see the path to the ruby executable that is used at the moment. </p> <p>using</p> <pre><code>echo $PATH </code></pre> <p>You can see the current PATH setting. You have to prepend the path to your new ruby binary to the PATH so that it will be found before the other one.</p> <p>As ayaz already mentions, the default location of your macports stuff is in /opt/local. If you add /opt/local/bin in front of your path it should be fine. (Make sure to start a new terminal window after the change - they will not be picked up in your current session unless you explicitely 'source' the .profile file again) </p> <p>One note of caution: after prepending /opt/local/bin to your path the shell will <em>always</em> prefer binaries in there to binaries found later, this can be an issue if you depend on specific versions in /bin, /sbin or /usr/sbin -- depending on your situation this means that you should not do it (if your computer is processing sensitive data and/or in a bank or something) or just have to remember that it could be an issue (if your computer is a normal development machine).</p> <p>See <a href="http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/" rel="noreferrer">http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/</a> if you need some more hints on how to set your PATH on osx.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload