16 | | 1. [=#preparation **Prepare for system version upgrade**] |
| 16 | After a major system change, update the development tools by |
| 17 | [https://guide.macports.org/#installing.xcode installing the latest version of Xcode]. |
| 18 | Open the Xcode application once after installation and follow any prompts. |
| 19 | Install the command line tools package as well. |
| 20 | |
| 21 | 2. [=#base **Reinstall MacPorts base**] |
| 22 | |
| 23 | After updating the development tools, |
| 24 | [https://www.macports.org/install.php install the base MacPorts system] |
| 25 | for your new platform, either from the appropriate installer or from |
| 26 | source. |
| 27 | |
| 28 | **Update macports.conf**: If your {{{macports.conf}}} (typically at {{{ /opt/local/etc/macports/macports.conf}}}) contains uncommented settings for {{{universal_archs}}} or {{{build_arch}}}, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. Several other settings in {{{macports.conf}}} have changed their defaults over the years. Take a moment to compare each line of your {{{macports.conf}}} with the corresponding line in {{{macports.conf.default}}} in the same directory. Unless you know a reason why a line in your settings file should be different from the defaults, adopt the line from the defaults file. |
| 29 | |
| 30 | 3. [=#ports **Reinstall ports**] |
33 | | |
34 | | 2. [=#osupgrade **Install new OS**] |
35 | | |
36 | | Perform your OS upgrade. |
37 | | |
38 | | 3. [=#xcode **Install the latest version of Xcode and the Xcode command line tools**] |
39 | | |
40 | | After a major system change, update the development tools by |
41 | | [https://guide.macports.org/#installing.xcode installing the latest version of Xcode]. |
42 | | Open the Xcode application once after installation and follow any prompts. |
43 | | Install the command line tools package as well (run `xcode-select --install`). |
44 | | |
45 | | 4. [=#base **Reinstall MacPorts base**] |
46 | | |
47 | | After updating the development tools, |
48 | | [https://www.macports.org/install.php install the base MacPorts system] |
49 | | for your new platform, either from the appropriate installer or from |
50 | | source. |
51 | | |
52 | | **Update macports.conf**: If your {{{macports.conf}}} (typically at {{{ /opt/local/etc/macports/macports.conf}}}) contains uncommented settings for {{{universal_archs}}} or {{{build_arch}}}, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. Several other settings in {{{macports.conf}}} have changed their defaults over the years. Take a moment to compare each line of your {{{macports.conf}}} with the corresponding line in {{{macports.conf.default}}} in the same directory. Unless you know a reason why a line in your settings file should be different from the defaults, adopt the line from the defaults file. |
53 | | |
54 | | 5. [=#ports **Reinstall ports**] |