[MacPorts] #61468: Selecting gcc as system default does not work on macOS 11.0 Big Sur
MacPorts
noreply at macports.org
Mon Nov 16 07:22:03 UTC 2020
#61468: Selecting gcc as system default does not work on macOS 11.0 Big Sur
-------------------------------+--------------------
Reporter: smeingast | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gcc10 gcc_select |
-------------------------------+--------------------
Comment (by smeingast):
Replying to [comment:5 jmroot]:
> Just to be completely sure, there's no other location where a gcc or
python could be found in your PATH before /opt/local/bin?
AHH, gotcha, that was the hint I needed!! Indeed, the order individual
directories were set up in PATH was different, so that /usr/bin/ was
checked AFTER /opt/local/bin/. Why? Because I used .zshenv instead of
.zprofile and for some reason .zshenv puts the included exports for PATH
after those defined by the system, so PATH startet with
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/opt/local/bin:/opt/local/sbin.
I now switched back to use .zprofile and the PATH is set up correctly
again with /opt/local/bin (etc.) in front! Thanks so much, I learned
something today!! :)
--
Ticket URL: <https://trac.macports.org/ticket/61468#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list