Changes between Version 50 and Version 51 of Migration


Ignore:
Timestamp:
Feb 18, 2012, 9:53:26 AM (12 years ago)
Author:
jmroot (Joshua Root)
Comment:

revert

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v50 v51  
    1 == Migrating a MacPorts install: new OS, Xcode or CPU architecture ==
     1== Migrating a MacPorts install to a new major OS version or CPU architecture ==
    22
    33An installation of MacPorts and the ports installed by it are only designed to work on a single OS release and a single CPU architecture. If you upgrade to a new OS version (e.g. from Leopard to Snow Leopard) or migrate to a new machine with a different type of CPU (e.g. PowerPC to Intel), you may get lucky and have your ports keep working, but in general, things will break.
    4 
    5 === Upgrading to Xcode 4.3 ===
    6 
    7 If you are upgrading to Xcode 4.3, you must [[BR]]
    8  1. select the new Xcode
    9 {{{
    10 `sudo xcode-select -switch /Applications/Xcode.app`
    11 }}}
    12  1. launch Xcode once to accept its license,
    13 {{{
    14 `open /Applications/Xcode.app`
    15 }}}
    16  1. In Xcode, go to "Xcode > Preferences > Downloads > Components > Command Line Tools" and install it, or [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=21047 download it separately].
    17  1. Edit macports.conf
    18 {{{
    19 `sudo nano ${prefix}/etc/macports/macports.conf`
    20 }}}
    21     and change
    22 {{{
    23 #developer_dir       /Developer
    24 }}}
    25     to
    26 {{{
    27 developer_dir       
    28 }}}
     4If you are only upgrading XCode (e.g. 4.1 to 4.2 on Lion) but not the major OS version or CPU architecture, you do not need to reinstall ports as described below.
    295
    306=== Reinstall Xcode and MacPorts ===