Skip to content

Commit 3d2bb8b

Browse files
committed
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.
1 parent 6a12e33 commit 3d2bb8b

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

src/INSTALL

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,53 @@ version of Vim that is small and starts up quickly, see the Makefile for how
3939
to disable the GUI and X11. If you don't have GUI libraries and/or X11, these
4040
features will be disabled automatically.
4141

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+
4282
See the start of Makefile for more detailed instructions about how to compile
4383
Vim.
4484

4585
If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS
4686
before starting configure. Example:
4787

48-
env CFLAGS=-I/usr/local/include LIBS=-lm make
88+
env CFLAGS=-I/usr/local/include LIBS=-lm make
4989

5090
This is only needed for things that configure doesn't offer a specific argument
5191
for or figures out by itself. First try running configure without extra

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2439,
753755
/**/
754756
2438,
755757
/**/

0 commit comments

Comments
 (0)