<div dir="ltr">I am using both homebrew and macports with *default* settings. My current $PATH is:<div>
<p class="gmail-p1"><span class="gmail-s1">echo $PATH</span></p><p class="gmail-p1"><span class="gmail-s1"> </span></p><p class="gmail-p1"><span class="gmail-s1">/opt/local/bin:/opt/local/sbin:/usr/local/gradle/gradle-2.11/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin</span></p><p class="gmail-p1">It simply looks for the packages in the default macports directory (/opt/local) first and then others, I guess. Though I constantly run into problems with different versions of pythons I have installed and need to specify the path every time. Nonetheless, it works.</p><p class="gmail-p1">But I have seen many people getting into problems like this. This one guy came up with a script [0] to wrap macports executables with the appropriate environment before using them. I think this is what you might be looking for. I haven't checked the script thoroughly but seems doable.</p><p class="gmail-p1">I was thinking of simply modifying the PATH var in .bashrc though.</p><p class="gmail-p1">[0]:Â <a href="https://www.topbug.net/blog/2013/10/23/use-both-homebrew-and-macports-on-your-os-x/">https://www.topbug.net/blog/2013/10/23/use-both-homebrew-and-macports-on-your-os-x/</a></p><p class="gmail-p1">- Umesh</p></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Umesh Singla</div></div></div>
<br><div class="gmail_quote">On Tue, Aug 29, 2017 at 5:38 PM, db <span dir="ltr"><<a href="mailto:iamsudo@gmail.com" target="_blank">iamsudo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I searched the docs, the list's archive and stackexchange amongst other sources for sort of a best practice for running macports along with homebrew, to no avail.<br>
<br>
>From those I gathered that the only problem one could run into, it seems, would be at build time — hence some advise on changing the PATH possibly with a script while building or upgrading.<br>
<br>
Besides missing ports and updated versions, what appeals to me from homebrew is cask (I have to read its documentation though), which could even install macports. What it doesn't: ruby, learning the peculiarities of another package manager and the whole Schraderbräu lingo.<br>
<br>
Is anyone actually using both package managers that could advise on a best way to run them together?</blockquote></div><br></div>