source: trunk/www/install.php @ 56316

Last change on this file since 56316 was 48795, checked in by raimue@…, 12 years ago

Update website for 1.7.1 release.
As we are now shipping disk images not only for major releases, drop
$macports_version_major and use $macports_version_latest everywhere.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-php
File size: 11.9 KB
2    /* -*- coding: utf-8; mode: php; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:set fenc=utf-8 filetype=php et sw=4 ts=4 sts=4: */
3    /* $Id: install.php 48795 2009-03-29 00:28:52Z $ */
4    /* Copyright (c) 2004, OpenDarwin. */
5    /* Copyright (c) 2004-2007, The MacPorts Project. */
6    include_once("includes/");
7    print_header('The MacPorts Project -- Download &amp; Installation', 'utf-8');
11<div id="content">
13    <h2 class="hdr">Installing MacPorts</h2>
15    <p>MacPorts version <?php print $macports_version_latest; ?> is available in various formats for download and installation:
16    </p>
18    <ul>
19        <li>&#8220;dmg&#8221; disk images for <a href="<?php print $leopard_dmg; ?>">Leopard (Universal)</a>, <a
20        href="<?php print $tiger_dmg; ?>">Tiger (Universal)</a> and <a href="<?php print $panther_dmg; ?>">Panther (PowerPC)
21        </a> as a legacy platform, containing pkg installers for use with the Mac OS X Installer. By far the simplest installation
22        procedure that most users should <a href="#pkg">follow</a> after meeting the requirements listed <a href="#requirements">
23        below</a>.</li>
24        <li>In <a href="#source">source form</a> as either a <a href="<?php print $bz2_tarball ?>">tar.bz2</a> package or a
25        <a href="<?php print $gz_tarball; ?>">tar.gz</a> one for manual compilation, if you intend to customize your installation
26        in any way.</li>
27        <li><a href="#svn">SVN checkout</a> of the unpackaged sources, if you wish to follow MacPorts development.</li>
28        <li>The <a href="#selfupdate">selfupdate</a> target of the <kbd>port(1)</kbd> command, for users who already have
29        MacPorts installed and wish to upgrade to a newer release.</li>
30    </ul>
32    <p>Checksums for our packaged <a href="<?php print $downloads; ?>">downloads</a> are contained in the corresponding <a
33    href="<?php print $checksums; ?>">checksums file</a>.</p>
36    <div id="requirements">
38        <p>Please note that in order to install and run MacPorts on Mac OS X, your system must have installations of the following
39        components:</p>
41        <ol>
42            <li>Apple's <a href="">Xcode</a> Developer Tools (version 3.1 or later for
43            Leopard, or 2.4.1 or later for Tiger), found at the <a href="">Apple Developer Connection</a>
44            site or on your Mac OS X installation CDs/DVD.</li>
45            <li>The X11 windowing environment (A.K.A. &#8220;X11 User&#8221;) and its related SDK package (&#8220;X11SDK&#8221;)
46            for ports that depend on the functionality they provide to compile and run.
47                <ul>
48                    <li>the &#8220;X11 User&#8221; package is an optional installation on your system CDs/DVD for Panther and
49                    Tiger, enabled through the &#8220;Customize&#8221; button of the installer, whereas it is included by default
50                    on Leopard.</li>
51                    <li>the &#8220;X11 SDK&#8221; package from the Xcode installer will be automatically selected if &#8220;X11
52                    User&#8221; is already installed, so be sure to install that first.</li>
53                </ul>
54            </li>
55        </ol>
57    </div>
60    <h3 class="subhdr" id="pkg">Mac OS X Package (.pkg) Installer</h3>
62    <p>The easiest way to install MacPorts on a Mac OS X system is by downloading the dmg for <a href="<?php print $leopard_dmg;
63    ?>">Leopard (Universal)</a>, <a href="<?php print $tiger_dmg; ?>">Tiger (Universal)</a> or <a href="<?php print $panther_dmg;
64    ?>">Panther (PowerPC)</a>, respectively, and running the system's Installer by double-clicking on the pkg contained therein,
65    following the on-screen instructions until completion.</p>
67    <p>This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage.
68    If needed your shell configuration files will be <a href="<?php print $guide_url . ''; ?>">adapted by
69    the installer</a> to include the necessary settings to run MacPorts and the programs it installs, but you may need to
70    open a new shell for these changes to take effect.</p>
72    <p>The MacPorts &#8220;<kbd>selfupdate</kbd>&#8221; command will also be run for you by the installer to ensure you have our
73    latest available release and the latest revisions to the &#8220;Portfiles&#8221; that contain the instructions employed
74    in the building and installation of ports. After installation is done, it is recommended that you run this step manually
75    on a regular basis to to keep your MacPorts system always current:</p>
77    <pre>sudo port -v selfupdate</pre>
79    <p>At this point you should be ready to enjoy MacPorts!</p>
81    <p>Type &#8220;<kbd>man port</kbd>&#8221; at the command line prompt and/or browse over to our <a href="<?php print
82    $guide_url; ?>">Guide</a> to find out more information about using MacPorts. <a href="#help">Help</a> is also available.
83    </p>
86    <h3 class="subhdr" id="source">Source Installation</h3>
88    <p>If on the other hand you decide to install MacPorts from source, there are still a couple of things you will need to do
89    after downloading the tarball before you can start installing ports, namely compiling and installing MacPorts itself:</p>
92    <ol>
93        <li>&#8220;<kbd>cd</kbd>&#8221; into the directory where you downloaded the package and run &#8220;<kbd>tar xjvf
94        <a href="<?php print $bz2_tarball; ?>">MacPorts-<?php print $macports_version_latest; ?>.tar.bz2</a></kbd>&#8221; or
95        &#8220;<kbd>tar xzvf <a href="<?php print $gz_tarball; ?>">MacPorts-<?php print $macports_version_latest; ?>.tar.gz</a></kbd>&#8221;,
96        depending on whether you downloaded the bz2 tarball or the gz one, respectively.</li>
97        <li>Build and install the recently unpacked sources:
98            <ul>
99                <li><kbd>cd MacPorts-<?php print $macports_version_latest; ?></kbd></li>
100                <li><kbd>./configure &amp;&amp; make &amp;&amp; sudo make install</kbd></li>
101            </ul>
102            Optionally:
103            <ul>
104                <li><kbd>cd ../</kbd></li>
105                <li><kbd>rm -rf MacPorts-<?php print $macports_version_latest; ?>*</kbd></li>
106            </ul>
108        </li>
109    </ol>
111    <p>These steps need to be perfomed from an administrator account, for which &#8220;<kbd>sudo</kbd>&#8221; will ask the
112    password upon installation. This procedure will install a pristine MacPorts system and, if the optional steps are taken,
113    remove the as of now unnecessary MacPorts-<?php print $macports_version_latest; ?> source directory and corresponding tarball.</p>
115    <p>To customize your installation you should read the output of &#8220;<kbd>./configure --help | more</kbd>&#8221; and
116    pass the appropriate options for the settings you wish to tweak to the configuration script in the steps detailed above.</p>
118    <p>You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation <kbd>
119    prefix</kbd> (the value passed to <kbd>configure</kbd>'s <kbd>--prefix</kbd> flag, defaulting to <kbd>/opt/local</kbd>):
120    </p>
122    <ul>
123        <li><kbd>Add ${prefix}/bin</kbd> and <kbd>${prefix}/sbin</kbd> to the start of your <kbd>PATH</kbd> environment variable
124        so that MacPorts-installed programs take precedence over system-provided programs of the same name.</li>
125        <li>If a standard <kbd>MANPATH</kbd> environment variable already exists (that is, one that doesn't contain any empty
126        components), add the <kbd>${prefix}/share/man</kbd> path to it so that MacPorts-installed man pages are found by your
127        shell.</li>
128        <li>For Tiger and earlier only, add an appropriate X11 <kbd>DISPLAY</kbd> environment variable to run X11-dependent
129        programs, as Leopard takes care of this requirement on its own.</li>
130    </ul>
132    <p>Lastly, you need to synchronize your installation with the MacPorts rsync server:</p>
134    <pre>sudo port -v selfupdate</pre>
136    <p>Upon completion MacPorts will be ready to install ports!</p>
138    <p>It is recommended to run the above command on a regular basis to keep your installation current. Type &#8220;<kbd>man
139    port</kbd>&#8221; at the command line prompt and/or browse over to our <a href="<?php print $guide_url; ?>">Guide</a> to
140    find out more information about using MacPorts. <a href="#help">Help</a> is also available.</p>
143    <h3 class="subhdr" id="svn">SVN Sources</h3>
145    <p>If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions,
146    you may acquire the MacPorts sources through subversion. See the Guide section on <a href="<?php print $guide_url; ?>#installing.macports.subversion">installing from subversion</a>.</p>
148    <p>Purpose-specific branches are also available at the <kbd><?php print $svn_url . 'branches'; ?></kbd> url.</p>
150    <p>Alternatively, if you'd simply like to view the SVN repository without checking it out, you can do so via the <a
151    href="<?php print $trac_url . 'browser'; ?>">Trac source browser</a>.</p>
154    <h3 class="subhdr" id="selfupdate">Selfupdate</h3>
156    <p>If you already have MacPorts installed and have no restrictions to use the rsync networking protocol (tcp port 873 by
157    default), the easiest way to upgrade to our latest available release, <b><?php print $macports_version_latest; ?></b>, is
158    by using the <kbd>selfupdate</kbd> target of the <kbd>port(1)</kbd> command. This will both update your ports tree (by
159    performing a <kbd>sync</kbd> operation) and rebuild your current installation if it's outdated, preserving your customizations,
160    if any.</p>
163    <h3 class="subhdr" id="other">Other Platforms</h3>
165    <p>Running on platforms other than Mac OS X is not the main focus of The MacPorts Project, so remaining cross-platform is
166    not an actively-pursued development goal. Nevertheless, it is not an actively-discouraged goal either and as a result some
167    experimental support does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.</p>
169    <p>The full list of requirements to run MacPorts on these other platforms is as follows (we assume you have the basics such
170    as GCC and X11):</p>
172    <ul>
173        <li><a href="">Tcl</a> (8.3 or 8.4), with threads.</li>
174        <li><a href="">GNUstep</a> (Base), for Foundation.</li>
175        <li><b>mtree</b> for directory hierarchy.</li>
176        <li><a href="">rsync</a> for syncing the ports.</li>
177        <li><a href="">cURL</a> for downloading distfiles.</li>
178        <li><a href="">OpenSSL</a> or <a href="">libmd</a> for checksums.</li>
179    </ul>
181    <p>Normally you must install from <a href="#source">source</a> or from an <a href="#svn">SVN checkout</a> to run MacPorts
182    on any of these platforms. Experimental packaging is available for the FreeBSD (.tbz package), Fedora (.rpm package) and
183    Ubuntu (.deb package) operating systems.</p>
186    <h3 class="subhdr" id="help">Help</h3>
188    <p>Help on a wide variety of topics is also available in the project <a href="<?php print $guide_url; ?>">Guide</a> and
189    through our <a href="<?php print $trac_url; ?>">Trac portal</a> should you run into any problems installing and/or using
190    MacPorts. Of particular relevance are the <a href="<?php print $guide_url . '#installing'; ?>">installation</a> &amp;
191    <a href="<?php print $guide_url . '#using'; ?>">usage</a> sections of the former and the <a href="<?php print $trac_url .
192    'wiki/FAQ'; ?>">FAQ</a> section of the <a href="<?php print $trac_url . 'wiki'; ?>">Wiki</a>, where we keep track of questions
193    frequently fielded on our <a href="contact.php#lists">mailing lists</a>.</p>
195    <p>If any of these resources do not answer your questions or if you need any kind of extended support, there are many ways
196    to <a href="contact.php">contact us</a>!</p>
203  print_footer();
Note: See TracBrowser for help on using the repository browser.