<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I might be wrong, but I do not believe it is possible to temporarily change the install prefix, for a single port.</div><div class=""><br class=""></div><div class="">Most probably you will need to start a new installation, using a custom installation prefix, from scratch. see</div><div class=""><br class=""></div><div class=""><a href="https://www.macports.org/install.php#source" class="">https://www.macports.org/install.php#source</a></div><div class=""><br class=""></div><div class="">on installing from source, which you will need to do to change the installation prefix, as its a configure time option.</div><div class=""><br class=""></div><div class="">Chris<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 17 Jan 2020, at 9:33 pm, Dave Allured - NOAA Affiliate via macports-users <<a href="mailto:macports-users@lists.macports.org" class="">macports-users@lists.macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I am on a corporate network with ports installed normally in /opt/local, controlled by system admins.  Users do not have any write access into system directories.  I would like to use a local portfile repository in user space, as described in Macports guide 4.6.<br class=""><br class="">How can I test ports in the local repository?  The "portindex" command works as expected in this directory.  However, "port install" fails with "Insufficient privileges to write to MacPorts install prefix".  I need a way to tell "port install" to use a local prefix, rather than the default system prefix, for only the port under test.<br class=""><br class="">I figured that I could avoid tampering with the protected sources.conf, by manually pre-staging the desired distfiles in the local repository.  Here is my embryonic directory structure:<br class=""><br class="">$HOME/portx/science/netcdf-fortran/Portfile<br class="">$HOME/portx/science/netcdf-fortran/files/patch-Makefile.in.diff<br class="">$HOME/portx/var/macports/distfiles/netcdf-fortran/netcdf-fortran-4.5.2.tar.gz<br class=""><br class="">Thank you for any advice.</div>
</div></blockquote></div><br class=""></div></body></html>