I am using both homebrew and macports with *default* settings. My current $PATH is:
echo $PATH /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 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. 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. I was thinking of simply modifying the PATH var in .bashrc though. [0]: https://www.topbug.net/blog/2013/10/23/use-both-homebrew-and-macports-on-your-os-x/ - Umesh Umesh Singla On Tue, Aug 29, 2017 at 5:38 PM, db <iams...@gmail.com> wrote: > 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. > > 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. > > 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. > > Is anyone actually using both package managers that could advise on a best > way to run them together?