Sometimes, we would like to install the VIM editor in Linux, but we do not have root or sudo access. In the following, I show the complete commands to install it without root or sudo access.
a) firstly, we download the vim for github
git clone https://github.com/vim/vim.git cd vim cd src make distclean ./configure --prefix=\$HOME/usr/localb) Maybe, you will get those error message:
checking for tgetent()... configure: error: NOT FOUND!
we need to install the package ncurses:
download the ncurses from http://ftp.gnu.org/pub/gnu/ncurses/
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz tar -xvf ncurses-6.1.tar.gz cd ncurses-6.1 ./configure --prefix=\$HOME/usr/local make make installvi ~/.bashrc add the following line
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/usr/local/lib source ~/.bashrcc) locate to previous vim directory and install vim.
cd xx/xx/vim/ LDFLAGS=-L\$HOME/usr/local/lib ./configure --prefix=\$HOME/usr/local make make installvi ~/.bashrc add the following line
export PATH=\$PATH:\$HOME/usr/local/bin alias vi=vim source ~/.bashrc
4) complete! Enjoy it!Reference: https://askubuntu.com/questions/158344/no-terminal-library-found-when-compiling-vim https://www.vim.org/git.php
No comments:
Post a Comment