running macports along with homebrew
raimue at macports.org
Tue Aug 29 22:32:12 UTC 2017
On 08/30/2017 12:17 AM, Mojca Miklavec wrote:
> On 29 August 2017 at 23:43, David Strubbe wrote:
>> Hi Mojca,
>> How do you hide a prefix when installing?
> You could have your path set to something like
> and then you would set it to
> when installing packages to MacPorts.
MacPorts will not use the PATH environment variable configured by the user at
all for building. These two examples should make no difference for MacPorts.
However, I do not know if having /opt/local/bin:/opt/local/sbin on PATH causes
problems for Homebrew.
> I think that MacPorts already takes some measures to hide the path
> that's irrelevant (so setting this might not necessarily make any
> difference to MacPorts, but doing something equivalent for Hombrew
> would probably help - unless they implement this feature recently in
> which case it wouldn't make any difference). I don't want to make any
> claims about current functionality as I didn't follow precisely.
> BUT: note that if Homebrew is installed in /usr/local, there's
> generally no way to hide packages from the compiler (except when using
> "port install -t"). If you install Hombrew to /usr/local and want to
> keep MacPorts and run into problems probably only god can help you fix
> the issues :) :) :)
This is the main problem. If you want to use Homebrew in parallel to MacPorts,
choose a different prefix than /usr/local.
More information about the macports-users