<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">Thanks Bill, Chris - I
have created an appropriate .bash_profile (as described in the
Guide) and everything appears normal now.</font></p>
<p><font face="Helvetica, Arial, sans-serif">I've searched back to
the time when Migration Assistant restored my user directory.
That .bash_profile had several comments made at the time(s) that
MacPorts install post-flight added and export of an amended
PATH, but I couldn't find a comment that corresponded to my
most recent Macports install (which was shortly after finishing
with Migration Assistant). However, that absence could have been
due to the timing of backups. In any case, the restored
.bash_profile should have worked just fine, so I'm at a loss to
know how my .bash_profile became "corrupted" post restoration.</font></p>
<p><font face="Helvetica, Arial, sans-serif">Never mind - all good
now. Thanks again.</font></p>
<p><font face="Helvetica, Arial, sans-serif">Chris F<br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif"><br>
</font></p>
<blockquote type="cite"
cite="mid:DC2571CC-1E3C-4596-B69F-A168905A63C0@hep.phy.cam.ac.uk">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 20 Oct 2023, at 6:13 pm, Bill Cole <a class="moz-txt-link-rfc2396E" href="mailto:macportsusers-20171215@billmail.scconsult.com"><macportsusers-20171215@billmail.scconsult.com></a> wrote:
On 2023-10-19 at 18:47:01 UTC-0400 (Fri, 20 Oct 2023 11:47:01 +1300)
Chris F <a class="moz-txt-link-rfc2396E" href="mailto:chris@unwired.co.nz"><chris@unwired.co.nz></a>
is rumored to have said:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 20/10/23 11:17 am, Chris Jones wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 19 Oct 2023, at 10:58 pm, Chris F <a class="moz-txt-link-rfc2396E" href="mailto:chris@unwired.co.nz"><chris@unwired.co.nz></a> wrote:
I've just migrated to Sonoma 14.0 via a clean OS install plus Migration Assistant and I'm now reinstalling my ports one at a time.
Port ruby31 installed without problems but ruby-select doesn't seem to work/be effective - after ruby-select ruby31 runs successfully, command "ruby" still starts the OS default ruby 2.6.10
I've checked /opt/local/bin/ruby and it points (correctly?) to ruby3.1.
Any advice would be appreciated.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Did you start a new terminal session after run port select for ruby ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Yes I did, Chris - I shut terminal down and restarted it a couple of times as well. Chris F
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Check the order of directories in your $PATH environment variable. If the sub-directories under /usr are listed before those under /opt/local, you will use the base install executables instead oF those installed by MacPorts.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Exactly. If once you have started a fresh terminal
> which ruby
Doesn’t list the macports provided one, the issue is your personal PATH is not set correctly.
Chris
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
--
Bill Cole
<a class="moz-txt-link-abbreviated" href="mailto:bill@scconsult.com">bill@scconsult.com</a> or <a class="moz-txt-link-abbreviated" href="mailto:billcole@apache.org">billcole@apache.org</a>
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
</pre>
</blockquote>
</blockquote>
<p><br>
</p>
</body>
</html>