tongxiaoming520 发表于 2013-1-28 09:51:58

install MacPorts

<span style="border-collapse: separate; color: #000000; font-family: 'AR PL UKai CN'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; white-space: normal;" class="Apple-style-span"><span style="color: #363636; font-family: Arial,Geneva,sans-serif; font-size: 15px; line-height: 22px;" class="Apple-style-span">http://www.macports.org/install.php
Mac OS X Package (.pkg) Installer

The easiest way to install MacPorts on a Mac OS X system is by downloading the dmg for Snow Leopard, Leopard or Tiger and running the system's Installer by double-clicking on the pkg contained therein,
    following the on-screen instructions until completion.

This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage.
    If needed your shell configuration files will be adapted by
    the installer to include the necessary settings to run MacPorts and the programs it installs, but you may need to
    open a new shell for these changes to take effect.

The MacPorts “selfupdate” command will also be run for you by the installer to ensure you have our
    latest available release and the latest revisions to the “Portfiles” that contain the instructions employed
    in the building and installation of ports. After installation is done, it is recommended that you run this step manually
    on a regular basis to to keep your MacPorts system always current:

sudo port -v selfupdate
sudo port -d selfupdate

At this point you should be ready to enjoy MacPorts!

Type “man port” at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.
    

http://guide.macports.org/#installing.macports

2.3. Install MacPorts

If you are using Mac OS X, you should install MacPorts using the Mac OS X package installer unless you do not wish to install it to /opt/local/, the default MacPorts location, or if you wish to install a pre-release version of MacPorts base. However, if you wish to install multiple copies of MacPorts or install MacPorts on another OS platform, you must install MacPorts from the source code.
<div style="padding: 0px; margin: 0px 0.5in; border-width: 0px; font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: inherit; vertical-align: baseline; color: #666666; line-height: 1.5em;" title="Note" class="note">Note

Though a distinction is made between pre-release and release versions of MacPorts base, the ports collection supports no such distinction or versioning. The selfupdate command installs the latest port revisions from subversion (at a slight delay), and updates MacPorts base to the latest released version.
页: [1]
查看完整版本: install MacPorts