[MacPorts] Notification: InstallingMacPorts modified

MacPorts noreply at macports.org
Tue Aug 12 07:34:58 PDT 2008



Changed page "InstallingMacPorts" by pburkholder at pobox.com from 130.14.27.81*
Page URL: <http://trac.macports.org/wiki/InstallingMacPorts>
Diff URL: <http://trac.macports.org/wiki/InstallingMacPorts?action=diff&version=31>
Revision 31
Comment: Added non-root install notes (Peter Burkholder)

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: InstallingMacPorts
=========================================================================
--- InstallingMacPorts (version: 30)
+++ InstallingMacPorts (version: 31)
@@ -116,6 +116,37 @@
 '''Note:'''
  * To see why /usr/local is not a viable install location for MacPorts, see the [http://trac.macosforge.org/projects/macports/wiki/FAQ MacPorts FAQ]
 
+=== Install MacPorts from source as an unprivileged user ===
+
+If you don't have root on your machine, or if you just prefer to install packages without becoming root, the following steps will install MacPorts into ~/macports.
+
+  * Note:  For Leopard, one needs to apply the patch from http://trac.macports.org/changeset/32105
+  * Run the following
+ 
+{{{
+  tar -jxf MacPorts-1.6.0.tar.bz2 && cd MacPorts-1.6.0
+
+  PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
+  --prefix=$HOME/macports \
+  --with-install-user=`id -un` \
+  --with-install-group=`id -gn` \
+  --x-includes=/usr/X11R6/include \
+  --x-libraries=/usr/X11R6/lib \
+  --with-tclpackage=$HOME/macports/share/macports/Tcl
+
+  make
+  make install
+}}}
+
+  * Add something like the following to your Mac's ".bashrc":
+
+{{{
+  export PATH=$HOME/macports/bin:$HOME/macports/sbin:$PATH:$HOME/lbin:$HOME/bin
+  export MANPATH=$HOME/macports/share/man:$MANPATH
+  export PERL5LIB=$HOME/macports/lib/perl5/5.8.8:$HOME/macports/lib/perl5/vendor_perl/5.8.8:$PERL5LIB
+}}}
+
+
 === Install MacPorts from a developer release ===
 Under construction.
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------


* The IP shown here might not mean anything if the user is behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/
added your email address to be notified of changes on MacPorts.
If it was not you, please report to http://www.macports.org/.


More information about the macports-changes mailing list