installing an older port

Brandon Allbery allbery.b at
Fri Sep 4 19:17:41 PDT 2015

On Fri, Sep 4, 2015 at 10:06 PM, Gideon Simpson <gideon.simpson at>

> gideon at gs_air:swig$ sudo port install
> Password:
> Error: Unable to execute port: Could not open file:
> /Users/gideon/Downloads/ports/swig/Portfile

Make sure that the user "macports" can get to that directory. This usually
means "chmod o+x ~" to grant search (only) privilege so that it can
traverse ~ to get to the swig subdirectory. (If you are feeling paranoid,
you can use "chmod -e" to limit that access to the "macports" user instead
of all users; see `man 1 chmod` for how OS X ACLs work.) Likewise ensure
that the swig directory grants access to the "macports" user and that that
user can read the Portfile and patch.

MacPorts does not perform all operations as root, but drops to the
unprivileged "macports" user for most things.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list