Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | INSTALLmac.txt - Installation of Vim on Macintosh |
| 2 | |
| 3 | This file contains instructions for compiling Vim. If you already have an |
| 4 | executable version of Vim, you don't need this. |
| 5 | |
Bram Moolenaar | d7a08a2 | 2016-01-03 22:51:16 +0100 | [diff] [blame] | 6 | First, make sure you've installed Xcode or CommandLineToots. If not, open a |
| 7 | terminal and do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | |
Bram Moolenaar | d7a08a2 | 2016-01-03 22:51:16 +0100 | [diff] [blame] | 9 | $ make --version |
| 10 | |
| 11 | A window pops up instructing you to install the developer tools. |
| 12 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13 | |
| 14 | ---------------------------------------------------------------------------- |
| 15 | Summary |
| 16 | ---------------------------------------------------------------------------- |
| 17 | |
| 18 | 1 MacOS X |
| 19 | 1.1. Carbon interface |
| 20 | 1.2. X (Athena, GTK, Motif) or plain text. |
| 21 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 22 | MacOS Classic is no longer supported. If you really want it use Vim 6.4. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 23 | |
| 24 | ---------------------------------------------------------------------------- |
| 25 | 1 MacOS X |
| 26 | ---------------------------------------------------------------------------- |
| 27 | |
| 28 | 1.0 Considerations |
| 29 | |
| 30 | Only '/' supported as path separator. |
| 31 | |
| 32 | 1.1 Carbon interface (default) |
| 33 | |
| 34 | You can compile vim with the standard Unix routine: |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 35 | cd .../src |
| 36 | make |
Bram Moolenaar | d7a08a2 | 2016-01-03 22:51:16 +0100 | [diff] [blame] | 37 | make test |
| 38 | sudo make install |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 39 | |
Bram Moolenaar | d7a08a2 | 2016-01-03 22:51:16 +0100 | [diff] [blame] | 40 | "make" will create a working Vim.app application bundle in the src |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 41 | directory. You can move this bundle (the Vim.app directory) anywhere |
Bram Moolenaar | d7a08a2 | 2016-01-03 22:51:16 +0100 | [diff] [blame] | 42 | you want. Or use "make install" to move it to /Applications. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 43 | |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 44 | You need at least Xcode 1.5 to compile Vim 7.0. |
| 45 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 46 | Configure will create a universal binary if possible. This requires |
| 47 | installing the universal SDK (currently for 10.4). |
| 48 | |
| 49 | To overrule the architecture do this before running make: |
| 50 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 51 | ./configure --with-mac-arch=intel |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 52 | or |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 53 | ./configure --with-mac-arch=ppc |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 54 | |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 55 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 56 | 1.2 X-Windows or Plain Text |
| 57 | |
| 58 | If you do not want the Carbon interface, you must explicitly tell |
| 59 | configure to use a different GUI. |
| 60 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 61 | cd .../src |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 62 | ./configure --disable-darwin --enable-gui=gtk2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 63 | make; make install |
| 64 | |
| 65 | NOTE: The following GUI options are supported: |
| 66 | no (for text), motif, athena, nextaw |
| 67 | gtk, gtk2, gnome, gnome2, |
| 68 | |
| 69 | NOTE: You need to first install XFree86 and XDarwin. |
| 70 | Please visit http://www.XDarwin.org |
| 71 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | ------------------------------------------------------ |