0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2021-01-31 16:45:53 +01:00
parent 6a12e3342d
commit 3d2bb8b6f1
2 changed files with 43 additions and 1 deletions

View File

@@ -39,6 +39,46 @@ version of Vim that is small and starts up quickly, see the Makefile for how
to disable the GUI and X11. If you don't have GUI libraries and/or X11, these
features will be disabled automatically.
To built Vim on Ubuntu from scratch on a clean system using git:
Install tools required to be able to get and build Vim:
% sudo apt install git
% sudo apt install make
% sudo apt install clang
Build Vim with default features:
% git clone https://github.com/vim/vim.git
% cd vim/src
% make
Run tests to check there are no problems:
% make test
Install Vim in /usr/local:
% sudo make install
Add X windows clipboard support (also needed for GUI):
% sudo apt install libxt-dev
% make reconfig
Add GUI support (ignore compiler warnings):
% sudo apt install libgtk2.0-dev
% make reconfig
Add Python 3 support:
% sudo apt install libpython3-dev
Uncomment this line in Makefile:
"CONF_OPT_PYTHON3 = --enable-python3interp"
% make reconfig
Debugging:
% sudo apt install valgrind
Uncomment this line in Makefile:
CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
% make reconfig
% make test_{test-name}
See output in testdir/valgrind.test_{test-name}
See the start of Makefile for more detailed instructions about how to compile
Vim.

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2439,
/**/
2438,
/**/