[MacPorts] InstallingMacPorts modified
MacPorts
noreply at macports.org
Tue Jul 23 19:59:09 PDT 2013
Page "InstallingMacPorts" was changed by larryv at macports.org
Diff URL: <https://trac.macports.org/wiki/InstallingMacPorts?action=diff&version=63>
Revision 63
Comment: note why custom readline is not supported
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: InstallingMacPorts
=========================================================================
--- InstallingMacPorts (version: 62)
+++ InstallingMacPorts (version: 63)
@@ -98,7 +98,7 @@
= 4. Install MacPorts =
-== Install MacPorts using the binary installer (to /opt/local/ only) ==
+== Install MacPorts using the binary installer (to /opt/local/ only) == #binary
1. Download the latest [http://www.macports.org/install.php MacPorts .dmg disk image].
2. Run the binary installer.
3. Perform the default “easy” install.
@@ -106,7 +106,7 @@
'''Note:'''
* A MacPorts' selfupdate (see below) will automatically update to the latest release if the binary .dmg image is behind the latest released tarball.
-== Install MacPorts from source (to any path except /usr/local/) ==
+== Install MacPorts from source (to any path except /usr/local/) == #source_privileged
1. Download and unzip the latest MacPorts tarball from the [http://www.macports.org/install.php MacPorts download area].
2. Perform these commands in a terminal window.
{{{
@@ -115,12 +115,12 @@
make
sudo make install
}}}
-(Warning: the `--enable-readline` flag might not work if you have a custom readline installation)
+You should //not// enable readline support if you have a custom readline installation in `/usr/local`, as [[ticket:10651|it can cause problems with the build]].
'''Note:'''
* To see why /usr/local is not a viable install location for MacPorts, see [wiki:FAQ#defaultprefix]
-== Install MacPorts from source as an unprivileged (non-root) user ==
+== Install MacPorts from source as an unprivileged (non-root) user == #source_unprivileged
If you don't have root access on your machine, or if you just prefer to install packages without becoming root, the following steps will install MacPorts into `~/macports` (tested on Leopard and Tiger).
@@ -129,21 +129,15 @@
* Run the following:
{{{
- tar -jxf MacPorts-2.1.3.tar.bz2 && cd MacPorts-2.1.3
+tar -jxf MacPorts-2.1.3.tar.bz2 && cd MacPorts-2.1.3
+PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
+ --enable-readline \
+ --prefix=$HOME/macports \
+ --with-install-user=`id -un` \
+ --with-install-group=`id -gn` \
+ --with-tclpackage=$HOME/macports/share/macports/Tcl \
}}}
- * Then make sure your path is the following:
-
-{{{
- PATH=/usr/bin:/usr/sbin:/bin:/sbin
-}}}
- * Then you can run `./configure` with at least the following flags:
-{{{
- --prefix=$HOME/macports \
- --with-install-user=`id -un` \
- --with-install-group=`id -gn` \
- --with-tclpackage=$HOME/macports/share/macports/Tcl \
-}}}
- You can also consider using the `--enable-readline` flag if you want the [wiki:SummerOfCode#interactive "interactive" `port(1)` command] to have readline support; however, if you have a custom version of readline installed, you might have to use the `--disable-readline` flag instead.
+ As noted [#source_privileged above], you should omit `--enable-readline` if you have a custom readline installation in `/usr/local`.
Sometimes the check for a working Objective-C Foundation can fail; if that is the case, try passing the following flag to the configure script:
{{{
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/InstallingMacPorts>
MacPorts <http://www.macports.org/>
Ports system for OS X
This is an automated message. Someone added your email address to be
notified of changes on 'InstallingMacPorts' page.
If it was not you, please report to .
More information about the macports-changes
mailing list