No Terminal Library Found when Compiling Vim

I think you should install a ncurses-dev library.

you can do so by running sudo apt-get install libncurses5-dev libncursesw5-dev


Run sudo apt-get build-dep vim to install all the packages that was used to build the vim package from the repositories.


if you don't have sudo access, the solution is as follows:

download the latest (or whichever) release of ncurses from http://ftp.gnu.org/pub/gnu/ncurses/

run these bash commands:

mkdir ~/usr/local
cd <path_to_ncurses>
tar xzvf <ncurses>.tar.gz # change the tar command if it is not a tar.gz
cd <ncurses>
./configure --prefix=$HOME/usr/local
make
make install
cd <path_to_vim>
LDFLAGS=-L$HOME/usr/local/lib ./configure # then add any options e.g. --prefix=$HOME/usr/local
make
make install

And there you go. It's not often that people don't have sudo access to a machine, but this was my case, and this thread didn't provide the information I needed :) Now it does