[MacPorts] #43856: Bug SelfUpdate
MacPorts
noreply at macports.org
Mon Jul 21 16:42:29 PDT 2014
#43856: Bug SelfUpdate
-------------------------+--------------------------------
Reporter: firetiti@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.0
Resolution: | Keywords:
Port: |
-------------------------+--------------------------------
Comment (by cal@…):
You cannot have `/usr/bin/cc` point to `/opt/local/bin/gcc`. MacPorts' GCC
will automatically add `/opt/local/include` to its header search path,
which means you cannot avoid the `readline.h` installed by MacPorts
itself. Obviously, this would lead to a cyclic dependency if it worked,
but in this case leads to a header/library mismatch and the problem you
see.
Please put the link back as it was, i.e.:
{{{
lrwxr-xr-x 1 root wheel 5 Oct 23 2013 /usr/bin/cc -> clang
}}}
If you need `cc` and `gcc` to be GCC compilers (I wonder why you'd need
that, though, clang is a pretty good compiler these days), adjust your
`$PATH` accordingly and put the symlinks in one of the directories before
`/usr/bin` in `$PATH` (for example, `/opt/local/bin` or `/usr/local/bin`).
`/usr/bin` is Apple land, you should never ever modify it, simply because
Apple's software and 3rd party software (like MacPorts) relies on it being
in the state in which it was installed.
--
Ticket URL: <https://trac.macports.org/ticket/43856#comment:26>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list