Mercurial > vim
annotate src/INSTALLmac.txt @ 28213:183ae001d99d v8.2.4632
patch 8.2.4632: using freed memory in flatten()
Commit: https://github.com/vim/vim/commit/f3980dc5d0a5f873cf764b8ba3e567e42259e4e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 26 16:42:23 2022 +0000
patch 8.2.4632: using freed memory in flatten()
Problem: Using freed memory in flatten().
Solution: Clear typval after recursing into list.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Mar 2022 17:45:03 +0100 |
parents | 9f41bfdbc6fc |
children | 2a17771529af |
rev | line source |
---|---|
24468 | 1 INSTALLmac.txt - Installation of Vim on Apple MacOS |
7 | 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 | |
24468 | 6 MacOS Classic is no longer supported. If you really want it use Vim 6.4. |
7 Only '/' is supported as path separator. | |
7482
52d76b2f56c7
commit https://github.com/vim/vim/commit/d7a08a23bf210147e846c74af570bd219e4903da
Christian Brabandt <cb@256bit.org>
parents:
856
diff
changeset
|
8 |
7 | 9 |
10 ---------------------------------------------------------------------------- | |
24468 | 11 Prerequisites |
7 | 12 ---------------------------------------------------------------------------- |
13 | |
24468 | 14 Make sure you've installed Xcode and CommandLineTools. You can download Xcode |
15 from the Mac App Store, for free. | |
16 | |
17 To check for CommandLineTools open a terminal and do: | |
18 | |
19 $ make --version | |
7 | 20 |
24468 | 21 If not installed yet a window pops up instructing you to install the developer |
22 tools. | |
23 | |
24 If you don't have the source yet, best is to use git (which you need to | |
25 install first), see http://www.vim.org/git.php | |
26 Or you can download and unpack the Unix tar archive, see | |
27 http://www.vim.org/download.php | |
28 | |
7 | 29 |
30 ---------------------------------------------------------------------------- | |
24468 | 31 Build and install the terminal version. |
7 | 32 ---------------------------------------------------------------------------- |
33 | |
24468 | 34 You can compile vim with the standard Unix routine: |
35 cd vim/src | |
699 | 36 make |
7482
52d76b2f56c7
commit https://github.com/vim/vim/commit/d7a08a23bf210147e846c74af570bd219e4903da
Christian Brabandt <cb@256bit.org>
parents:
856
diff
changeset
|
37 make test |
52d76b2f56c7
commit https://github.com/vim/vim/commit/d7a08a23bf210147e846c74af570bd219e4903da
Christian Brabandt <cb@256bit.org>
parents:
856
diff
changeset
|
38 sudo make install |
7 | 39 |
24468 | 40 If you get an error "glibtool: command not found" search on stackoverflow for |
41 mac-osx-where-can-i-download-glibtool. | |
699 | 42 |
24468 | 43 With Homebrew, run: |
44 | |
45 brew install libtool | |
699 | 46 |
24468 | 47 To build libtool from source: |
48 | |
49 1. Download the source code from https://www.gnu.org/software/libtool/. | |
50 | |
51 2. Run these commands from the root of the source code directory: | |
52 | |
53 ./configure --program-prefix=g | |
54 make | |
55 sudo make install | |
699 | 56 |
674 | 57 |
24468 | 58 ---------------------------------------------------------------------------- |
59 Build and install the GUI version with X-Windows | |
60 ---------------------------------------------------------------------------- | |
7 | 61 |
24468 | 62 First, install XQuartz, which you can download from https://www.xquartz.org. |
7 | 63 |
24468 | 64 To tell configure to use a GUI you can edit the Makefile and uncomment these |
65 two lines (remove the # at the start of the line): | |
66 | |
67 CONF_OPT_GUI = --enable-gui=athena | |
68 CONF_OPT_DARWIN = --disable-darwin | |
7 | 69 |
24468 | 70 Do "make distclean" to start with a clean slate. |
71 Then build as with the terminal version above. | |
72 Instead of "athena" you can try "gtk2" but you probably need to install GTK | |
73 first. | |
74 | |
7 | 75 |
24468 | 76 ---------------------------------------------------------------------------- |
77 Notes | |
78 ---------------------------------------------------------------------------- | |
7 | 79 |
24468 | 80 Mac-specific configure options are explained in the Makefile: |
81 --disable-darwin | |
82 --with-mac-arch | |
83 |