New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changes between Version 2 and Version 3 of InstallingMacPorts


Ignore:
Timestamp:
10/08/06 20:46:25 (7 years ago)
Author:
markd@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallingMacPorts

    v2 v3  
    22 1. Download the latest verson of Xcode Tools from [http://connect.apple.com/ Apple's developer site] —do not install an older version from the OS X 10.4 install disk or some ports may fail to install. 
    33 2. Run the binary installer and perform an "easy install" —the default install also copies the X11SDK required by X11. 
    4  
    5 = Install the MacPorts Binary = 
    6  1. Download the latest MacPorts .dmg disk image you find in the [http://svn.macosforge.org/repository/macports/downloads/ MacPorts download area] 
    7  2. Run the binary installer 
    8  3. Perform an “easy” install 
    94 
    105= Install XWindows (X11) = 
     
    1510 4. Drag the /Applications/Utilities/X11 icon to your dock —you must open X11 before launching an X11 application 
    1611 
    17 '''NOTES:''' 
     12'''Notes:''' 
    1813 * XWindows (X11) is required for many MacPorts apps and it is highly recommended that you install it even if you don't plan to run X11 apps immediately. 
    1914 * The X11SDK is also required to run X11 software, but it is installed by default during the Xcode Tools install above.  Look in /Library/Receipts if you wish to verify that X11 and/or X11SDK were installed. 
     
    2318== Requirements for the MacPorts' shell environment == 
    2419 
    25 The MacPorts binary installer places a .profile file in your home directory (view files preceded by a dot with  'ls -a').  The contents of this ~/.profile file adds the MacPorts paths in front of the standard Unix paths for the default BASH shell.  This is done so that if you have utilities or libraries from both MacPorts and OS X's standard install, the MacPorts libraries will be run instead of the ones provided by Apple.  The ~/.profile path statement is: 
     20The MacPorts binary installer places a .profile file in your home directory (view files preceded by a dot with  'ls -a').  The contents of this ~/.profile file adds the MacPorts paths in front of the standard Unix paths for the default BASH shell.  This is done so that if you have utilities or libraries from both MacPorts and OS X's standard install, the MacPorts libraries will be run instead of the ones provided by Apple. 
    2621 
    2722'''{{{export PATH=/opt/local/bin:/opt/local/sbin:$PATH}}}''' 
    2823 
    29 You'll need to add this variable to your ~/.profile to be able to run X11 applications: 
     24You'll need to add this variable to your ~/.profile to run X11 applications: 
    3025 
    3126'''{{{export DISPLAY=:0.0}}}''' 
    3227 
    33 '''IMPORTANT NOTES:''' 
     28So a basic ~./profile file will look like this: 
     29 
     30{{{ 
     31export PATH=/opt/local/bin:/opt/local/sbin:$PATH 
     32export DISPLAY=:0.0 
     33}}} 
     34 
     35'''Important Notes:''' 
    3436 
    3537 * To understand why MacPorts libraries are often installed when Apple has provided one, see section "Why is MacPorts using its own libraries?" in the [wiki:FAQ]. 
     
    3941    * ~/.bash_profile 
    4042 
    41 == Options for the MacPorts' shell environment == 
     43== Options for the MacPorts' shell and X11 environment == 
    4244 
    43 To launch X11 apps directly from an X11 window (instead of a terminal window), you need to add the MacPorts paths to X11's .xinitrc.  An easy way to do that is to add this statement to the file /etc/X11/xinit/xinitrc: 
     45To set a default editor for use with the port command (e. g. 'port ed mysql5'), add a variable EDITOR with the path of your favorite editor to the ~./profile file. 
     46 
     47'''{{{export EDITOR=/usr/bin/pico}}}''' 
     48 
     49A sample ~/.profile with optional EDITOR variable set: 
     50{{{ 
     51export PATH=/opt/local/bin:/opt/local/sbin:$PATH 
     52export DISPLAY=:0.0 
     53export EDITOR=/usr/bin/pico 
     54}}} 
     55 
     56 
     57To launch X11 apps directly from an X11 window (instead of a terminal window), you need to add the MacPorts paths to X11's .xinitrc.  An easy way to do that is to add this statement to the file /etc/X11/xinit/xinitrc at the top: 
    4458 
    4559'''{{{source ~/.profile}}}''' 
    4660 
    47 To set a default editor for use with the port command (e. g. 'port ed mysql5'), set the EDITOR variable to the path of your favorite editor. 
     61Sample xinitrc snippet: 
     62{{{ 
     63#!/bin/sh 
     64# $Id: xinitrc,v 1.1.1.1 2005/02/24 22:35:39 akosut Exp $ 
    4865 
    49 '''{{{export EDITOR=/usr/bin/pico}}}''' 
     66source ~/.profile 
     67 
     68}}} 
     69= Install the MacPorts Binary = 
     70 1. Download the latest MacPorts .dmg disk image you find in the [http://svn.macosforge.org/repository/macports/downloads/ MacPorts download area] 
     71 2. Run the binary installer 
     72 3. Perform an “easy” install 
     73 
     74= Download the latest MacPorts portfiles = 
     75 1. Open a terminal window 
     76 2. Execute the MacPorts selfupdate command 
     77 
     78{{{ 
     79port selfupdate 
     80}}} 
     81or for verbose output: 
     82{{{ 
     83port -vd selfupdate 
     84}}} 
     85 
     86'''Note:''' The selfupdate command also updates the MacPorts program to the latest point release since the binary installer was created.