running macports along with homebrew
Umesh Singla
umeshksingla at gmail.com
Tue Aug 29 12:55:26 UTC 2017
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 <iamsudo at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20170829/d92d034e/attachment.html>
More information about the macports-users
mailing list