Mercurial > vim
comparison src/INSTALL @ 23796:4284b0a2b901 v8.2.2439
patch 8.2.2439: not easy to figure out what packages to get
Commit: https://github.com/vim/vim/commit/3d2bb8b6f152c0c5056f49bccb350683a9ba2e13
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 31 16:45:53 2021 +0100
patch 8.2.2439: not easy to figure out what packages to get
Problem: Not easy to figure out what packages to get when installing Vim on
a new Ubuntu system.
Solution: Mention explicit commands that are easy to follow.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 Jan 2021 17:00:04 +0100 |
parents | bb3f60b0aca0 |
children | 788e10cec9bd |
comparison
equal
deleted
inserted
replaced
23795:889b287833fb | 23796:4284b0a2b901 |
---|---|
37 This will include the GUI and X11 libraries, if you have them. If you want a | 37 This will include the GUI and X11 libraries, if you have them. If you want a |
38 version of Vim that is small and starts up quickly, see the Makefile for how | 38 version of Vim that is small and starts up quickly, see the Makefile for how |
39 to disable the GUI and X11. If you don't have GUI libraries and/or X11, these | 39 to disable the GUI and X11. If you don't have GUI libraries and/or X11, these |
40 features will be disabled automatically. | 40 features will be disabled automatically. |
41 | 41 |
42 To built Vim on Ubuntu from scratch on a clean system using git: | |
43 Install tools required to be able to get and build Vim: | |
44 % sudo apt install git | |
45 % sudo apt install make | |
46 % sudo apt install clang | |
47 | |
48 Build Vim with default features: | |
49 % git clone https://github.com/vim/vim.git | |
50 % cd vim/src | |
51 % make | |
52 | |
53 Run tests to check there are no problems: | |
54 % make test | |
55 | |
56 Install Vim in /usr/local: | |
57 % sudo make install | |
58 | |
59 Add X windows clipboard support (also needed for GUI): | |
60 % sudo apt install libxt-dev | |
61 % make reconfig | |
62 | |
63 Add GUI support (ignore compiler warnings): | |
64 % sudo apt install libgtk2.0-dev | |
65 % make reconfig | |
66 | |
67 Add Python 3 support: | |
68 % sudo apt install libpython3-dev | |
69 Uncomment this line in Makefile: | |
70 "CONF_OPT_PYTHON3 = --enable-python3interp" | |
71 % make reconfig | |
72 | |
73 Debugging: | |
74 % sudo apt install valgrind | |
75 Uncomment this line in Makefile: | |
76 CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 | |
77 % make reconfig | |
78 % make test_{test-name} | |
79 See output in testdir/valgrind.test_{test-name} | |
80 | |
81 | |
42 See the start of Makefile for more detailed instructions about how to compile | 82 See the start of Makefile for more detailed instructions about how to compile |
43 Vim. | 83 Vim. |
44 | 84 |
45 If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS | 85 If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS |
46 before starting configure. Example: | 86 before starting configure. Example: |
47 | 87 |
48 env CFLAGS=-I/usr/local/include LIBS=-lm make | 88 env CFLAGS=-I/usr/local/include LIBS=-lm make |
49 | 89 |
50 This is only needed for things that configure doesn't offer a specific argument | 90 This is only needed for things that configure doesn't offer a specific argument |
51 for or figures out by itself. First try running configure without extra | 91 for or figures out by itself. First try running configure without extra |
52 arguments. | 92 arguments. |
53 | 93 |