source: trunk/www/install.php @ 140222

Last change on this file since 140222 was 126916, checked in by jmr@…, 6 years ago

www: update for 2.3.2 release

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-php
File size: 14.1 KB
Line 
1<?php
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 126916 2014-10-17 16:26:14Z jmr@macports.org $ */
4    /* Copyright (c) 2004, OpenDarwin. */
5    /* Copyright (c) 2004-2013, The MacPorts Project. */
6    include_once("includes/common.inc");
7    print_header('The MacPorts Project -- Download &amp; Installation', 'utf-8');
8?>
9
10
11<div id="content">
12
13    <h2 class="hdr" id="quickstart">Quickstart</h2>
14
15    <ol>
16        <li>Install <a href="http://guide.macports.org/#installing.xcode">Xcode and the Xcode Command Line Tools</a></li>
17        <li>Agree to Xcode license in Terminal: <code>sudo xcodebuild -license</code></li>
18        <li>Install MacPorts for your version of OS X:
19            <ul>
20                <li><a href="<?php echo $yosemite_pkg; ?>"    >OS X 10.10 Yosemite</a></li>
21                <li><a href="<?php echo $mavericks_pkg; ?>"    >OS X 10.9 Mavericks</a></li>
22                <li><a href="<?php echo $mountainlion_pkg; ?>" >OS X 10.8 Mountain Lion</a></li>
23                <li><a href="#installing">Older OS? See here.</a></li>
24            </ul>
25        </li>
26    </ol>
27
28    <h2 class="hdr" id="installing">Installing MacPorts</h2>
29
30    <p>MacPorts version <?php print $macports_version_latest; ?> is available in various formats for download and installation (note, if you are upgrading your Mac OS X to a new major release, see the <a href="https://trac.macports.org/wiki/Migration">migration info page</a>):
31    </p>
32
33    <ul>
34        <li>&#8220;pkg&#8221; installers for
35        <a href="<?php print $yosemite_pkg; ?>">Yosemite</a>,
36        <a href="<?php print $mavericks_pkg; ?>">Mavericks</a> and
37        <a href="<?php print $mountainlion_pkg; ?>">Mountain Lion</a>,
38        for use with the Mac OS X Installer.
39        This is the simplest installation
40        procedure that most users should <a href="#pkg">follow</a> after meeting the requirements listed <a href="#requirements">
41        below</a>. Installers for legacy platforms <a href="<?php print $lion_pkg; ?>">Lion</a>, <a
42        href="<?php print $snowleopard_pkg; ?>">Snow Leopard</a>, <a href="<?php print $leopard_dmg; ?>">Leopard</a>
43        and <a href="<?php print $tiger_dmg; ?>">Tiger</a> are
44        also available.</li>
45        <li>In <a href="#source">source form</a> as either a <a href="<?php print $bz2_tarball ?>">tar.bz2</a> package or a
46        <a href="<?php print $gz_tarball; ?>">tar.gz</a> one for manual compilation, if you intend to customize your installation
47        in any way.</li>
48        <li><a href="#svn">SVN checkout</a> of the unpackaged sources, if you wish to follow MacPorts development.</li>
49        <li>The <a href="#selfupdate">selfupdate</a> target of the <kbd>port(1)</kbd> command, for users who already have
50        MacPorts installed and wish to upgrade to a newer release.</li>
51    </ul>
52
53    <p>Checksums for our packaged <a href="<?php print $downloads; ?>">downloads</a> are contained in the corresponding <a
54    href="<?php print $checksums; ?>">checksums file</a>.</p>
55
56
57    <div id="requirements">
58
59        <p>Please note that in order to install and run MacPorts on Mac OS X, your system must have installations of the following
60        components:</p>
61
62        <ol>
63            <li>Apple's <a href="https://developer.apple.com/technologies/tools/">Xcode</a> Developer Tools (version 6.1 or later for Yosemite,
64            5.0.1 or later for Mavericks, 4.4 or later for Mountain Lion,
65            4.1 or later for Lion, 3.2 or later for
66            Snow Leopard, or 3.1 or later for Leopard), found at the <a href="https://developer.apple.com/downloads/">Apple Developer</a>
67            site, on your Mac OS X installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your
68            OS is highly recommended.</li>
69            <li>Apple's Command Line Developer Tools are found at the <a href="https://developer.apple.com/downloads/">Apple Developer</a> site,
70            or they can be installed from within Xcode 4.  Users of Xcode 3 or earlier can install this by ensuring that the appropriate
71            option(s) are selected at the time of Xcode's install ("UNIX Development", "System Tools", "Command Line Tools", or
72            "Command Line Support").</li>
73            <li>Xcode 4 and later users need to first accept the Xcode EULA by either launching Xcode or running:
74            <pre>xcodebuild -license</pre>
75            </li>
76            <li>(Optional) The X11 windowing environment for ports that depend on the functionality it provides to run.  You have
77            multiple choices for an X11 server:
78                <ul>
79                    <li>Apple's X11.app is provided by the &#8220;X11 User&#8221; package (an optional installation on your system CDs/DVD for
80                    older OS Versions and provided unconditionally on Lion).</li>
81                    <li>Install the xorg-server port from MacPorts.</li>
82                    <li>The <a href="http://xquartz.macosforge.org">XQuartz Project</a> provides a complete X11 release for OS X including server and client libraries and applications.</li>
83                </ul>
84            </li>
85        </ol>
86
87    </div>
88
89
90    <h3 class="subhdr" id="pkg">Mac OS X Package (.pkg) Installer</h3>
91
92    <p>The easiest way to install MacPorts on a Mac OS X system is by downloading the dmg for
93    <a href="<?php print $yosemite_pkg; ?>">Yosemite</a>,
94    <a href="<?php print $mavericks_pkg; ?>">Mavericks</a>,
95    <a href="<?php print $mountainlion_pkg; ?>">Mountain Lion</a>,
96    <a href="<?php print $lion_pkg; ?>">Lion</a>,
97    <a href="<?php print $snowleopard_pkg; ?>">Snow Leopard</a>, <a href="<?php print $leopard_dmg;
98    ?>">Leopard</a> or <a href="<?php print $tiger_dmg;
99    ?>">Tiger</a> and running the system's Installer by double-clicking on the pkg contained therein,
100    following the on-screen instructions until completion.</p>
101
102    <p>This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage.
103    If needed your shell configuration files will be <a href="<?php print $guide_url . '#installing.shell'; ?>">adapted by
104    the installer</a> to include the necessary settings to run MacPorts and the programs it installs, but you may need to
105    open a new shell for these changes to take effect.</p>
106
107    <p>The MacPorts &#8220;<kbd>selfupdate</kbd>&#8221; command will also be run for you by the installer to ensure you have our
108    latest available release and the latest revisions to the &#8220;Portfiles&#8221; that contain the instructions employed
109    in the building and installation of ports. After installation is done, it is recommended that you run this step manually
110    on a regular basis to to keep your MacPorts system always current:</p>
111   
112    <pre>sudo port -v selfupdate</pre>
113
114    <p>At this point you should be ready to enjoy MacPorts!</p>
115
116    <p>Type &#8220;<kbd>man port</kbd>&#8221; at the command line prompt and/or browse over to our <a href="<?php print
117    $guide_url; ?>">Guide</a> to find out more information about using MacPorts. <a href="#help">Help</a> is also available.
118    </p>
119
120
121    <h3 class="subhdr" id="source">Source Installation</h3>
122
123    <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
124    after downloading the tarball before you can start installing ports, namely compiling and installing MacPorts itself:</p>
125
126
127    <ol>
128        <li>&#8220;<kbd>cd</kbd>&#8221; into the directory where you downloaded the package and run &#8220;<kbd>tar xjvf
129        <a href="<?php print $bz2_tarball; ?>">MacPorts-<?php print $macports_version_latest; ?>.tar.bz2</a></kbd>&#8221; or
130        &#8220;<kbd>tar xzvf <a href="<?php print $gz_tarball; ?>">MacPorts-<?php print $macports_version_latest; ?>.tar.gz</a></kbd>&#8221;,
131        depending on whether you downloaded the bz2 tarball or the gz one, respectively.</li>
132        <li>Build and install the recently unpacked sources:
133            <ul>
134                <li><kbd>cd MacPorts-<?php print $macports_version_latest; ?></kbd></li>
135                <li><kbd>./configure &amp;&amp; make &amp;&amp; sudo make install</kbd></li>
136            </ul>
137            Optionally:
138            <ul>
139                <li><kbd>cd ../</kbd></li>
140                <li><kbd>rm -rf MacPorts-<?php print $macports_version_latest; ?>*</kbd></li>
141            </ul>
142           
143        </li>
144    </ol>
145
146    <p>These steps need to be perfomed from an administrator account, for which &#8220;<kbd>sudo</kbd>&#8221; will ask the
147    password upon installation. This procedure will install a pristine MacPorts system and, if the optional steps are taken,
148    remove the as of now unnecessary MacPorts-<?php print $macports_version_latest; ?> source directory and corresponding tarball.</p>
149
150    <p>To customize your installation you should read the output of &#8220;<kbd>./configure --help | more</kbd>&#8221; and
151    pass the appropriate options for the settings you wish to tweak to the configuration script in the steps detailed above.</p>
152       
153    <p>You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation <kbd>
154    prefix</kbd> (the value passed to <kbd>configure</kbd>'s <kbd>--prefix</kbd> flag, defaulting to <kbd>/opt/local</kbd>):
155    </p>
156
157    <ul>
158        <li><kbd>Add ${prefix}/bin</kbd> and <kbd>${prefix}/sbin</kbd> to the start of your <kbd>PATH</kbd> environment variable
159        so that MacPorts-installed programs take precedence over system-provided programs of the same name.</li>
160        <li>If a standard <kbd>MANPATH</kbd> environment variable already exists (that is, one that doesn't contain any empty
161        components), add the <kbd>${prefix}/share/man</kbd> path to it so that MacPorts-installed man pages are found by your
162        shell.</li>
163        <li>For Tiger and earlier only, add an appropriate X11 <kbd>DISPLAY</kbd> environment variable to run X11-dependent
164        programs, as Leopard takes care of this requirement on its own.</li>
165    </ul>
166
167    <p>Lastly, you need to synchronize your installation with the MacPorts rsync server:</p>
168
169    <pre>sudo port -v selfupdate</pre>
170
171    <p>Upon completion MacPorts will be ready to install ports!</p>
172
173    <p>It is recommended to run the above command on a regular basis to keep your installation current. Type &#8220;<kbd>man
174    port</kbd>&#8221; at the command line prompt and/or browse over to our <a href="<?php print $guide_url; ?>">Guide</a> to
175    find out more information about using MacPorts. <a href="#help">Help</a> is also available.</p>
176
177
178    <h3 class="subhdr" id="svn">SVN Sources</h3>
179
180    <p>If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions,
181    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>
182
183    <p>Purpose-specific branches are also available at the <kbd><?php print $svn_url . 'branches'; ?></kbd> url.</p>
184
185    <p>Alternatively, if you'd simply like to view the SVN repository without checking it out, you can do so via the <a
186    href="<?php print $trac_url . 'browser'; ?>">Trac source browser</a>.</p>
187   
188   
189    <h3 class="subhdr" id="selfupdate">Selfupdate</h3>
190
191    <p>If you already have MacPorts installed and have no restrictions to use the rsync networking protocol (tcp port 873 by
192    default), the easiest way to upgrade to our latest available release, <b><?php print $macports_version_latest; ?></b>, is
193    by using the <kbd>selfupdate</kbd> target of the <kbd>port(1)</kbd> command. This will both update your ports tree (by
194    performing a <kbd>sync</kbd> operation) and rebuild your current installation if it's outdated, preserving your customizations,
195    if any.</p>
196   
197
198    <h3 class="subhdr" id="other">Other Platforms</h3>
199
200    <p>Running on platforms other than Mac OS X is not the main focus of The MacPorts Project, so remaining cross-platform is
201    not an actively-pursued development goal. Nevertheless, it is not an actively-discouraged goal either and as a result some
202    experimental support does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.</p>
203
204    <p>The full list of requirements to run MacPorts on these other platforms is as follows (we assume you have the basics such
205    as GCC and X11):</p>
206
207    <ul>
208        <li><a href="http://www.tcl.tk/">Tcl</a> (8.4 or 8.5), with threads.</li>
209        <li><b>mtree</b> for directory hierarchy.</li>
210        <li><a href="http://rsync.samba.org/">rsync</a> for syncing the ports.</li>
211        <li><a href="http://curl.haxx.se/">cURL</a> for downloading distfiles.</li>
212        <li><a href="http://www.sqlite.org/">SQLite</a> for the port registry.</li>
213        <li><a href="http://gnustep.org/">GNUstep</a> (Base), for Foundation (optional, can be disabled via configure args).</li>
214        <li><a href="http://www.openssl.org/">OpenSSL</a> for signature verification, and optionally for checksums. <b>libmd</b> may
215            be used instead for checksums.</li>
216    </ul>
217
218    <p>Normally you must install from <a href="#source">source</a> or from an <a href="#svn">SVN checkout</a> to run MacPorts
219    on any of these platforms.</p>
220
221
222    <h3 class="subhdr" id="help">Help</h3>
223
224    <p>Help on a wide variety of topics is also available in the project <a href="<?php print $guide_url; ?>">Guide</a> and
225    through our <a href="<?php print $trac_url; ?>">Trac portal</a> should you run into any problems installing and/or using
226    MacPorts. Of particular relevance are the <a href="<?php print $guide_url . '#installing'; ?>">installation</a> &amp;
227    <a href="<?php print $guide_url . '#using'; ?>">usage</a> sections of the former and the <a href="<?php print $trac_url .
228    'wiki/FAQ'; ?>">FAQ</a> section of the <a href="<?php print $trac_url . 'wiki'; ?>">Wiki</a>, where we keep track of questions
229    frequently fielded on our <a href="contact.php#Lists">mailing lists</a>.</p>
230
231    <p>If any of these resources do not answer your questions or if you need any kind of extended support, there are many ways
232    to <a href="contact.php">contact us</a>!</p>
233   
234
235</div>
236
237
238<?php
239  print_footer();
240?>
Note: See TracBrowser for help on using the repository browser.