I installed MacPorts from source, with the --with-no-root-privileges flag, and configured it so that it uses ~/.macports/opt/local as its $prefix.<br>
<br>
I want to run MacPorts on my laptop *always* without root privileges, because I don't want it to modify anything whatsoever outside of the $prefix mentioned above.<br><br>Still, despite the configuration described above, some installations are failing due to insufficient permissions.<br>
<br>For example, the installation of Emacs fails because the installation of dbus fails, and the latter fails because of this:<br><br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><div>
<div>---> Installing dbus @1.2.24_1</div><div>Warning: addgroup only works when running as root.</div><div>Warning: The requested group 'messagebus' was not created.</div><div>Warning: adduser only works when running as root.</div>
<div>Warning: The requested user 'messagebus' was not created.</div></div><div><div>---> Activating dbus @1.2.24_1</div><div>Error: Target org.macports.activate returned: error copying "/Users/user531/.macports/opt/local/var/macports/software/dbus/1.2\</div>
<div>.24_1/Library/LaunchDaemons/org.freedesktop.dbus-system.plist" to "/Library/LaunchDaemons/org.freedesktop.dbus-system.plist":\</div><div> permission denied</div><div>Error: Failed to install dbus</div>
</div></span></span><br class="Apple-interchange-newline">I'm fine with setting up the messagebus user and groups "by hand" using sudo, but I do not want MacPorts to put anything under /Library. What must I do to get MacPorts to use a different location for these files?<br>
<br>In case I must finish this installation "manually", what must I do so that the installation of ports that depend on dbus do not croak on account of not having this dependency?<br><br>Thanks!<br><br>GB<br>