Ticket #13766 (closed defect: invalid)
make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)
| Reported by: | ryandesign@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 1.6.0 |
| Keywords: | Cc: | ||
| Port: |
Description
You should be able to configure, make and install MacPorts into a prefix under your user's control, and not have to use root to install it. But this doesn't work because the Makefile in the config directory is still trying to change the owner of ${prefix}/etc/macports to root:
$ PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \ --prefix=/tmp/macports \ --with-tclpackage=/tmp/macports/share/macports/Tcl [snip] $ make [snip] $ make install [snip] ===> making install in config /usr/bin/install -c -d -o root -g admin -m 0755 /tmp/macports/etc/macports install: chown 0:80 /tmp/macports/etc/macports: Operation not permitted /usr/bin/install -c -o root -g admin -m 644 mp_version /tmp/macports/etc/macports install: /tmp/macports/etc/macports/mp_version: chown/chgrp: Operation not permitted make[1]: *** [install] Error 71 make: *** [install] Error 1 $
Change History
comment:2 Changed 5 years ago by ryandesign@…
- Status changed from new to closed
- Resolution set to invalid
Sorry, yes, adding --with-install-user=me --with-install-group=me works fine. I forgot that was necessary.
Note: See
TracTickets for help on using
tickets.


can you use the --with-install-user option to configure ?