I've got some troubles when I try to install Vim on Linux while I don't have a root account. The error information is shown below:
How can I solve this? Can I install it in another directory other than
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
I often install things with
./configure --prefix=$HOME/.local && make && make install where I'm not root. That's the way to proceed.
This works with most software. Vim is in no way different here.
Note that in vim case, I actually configure with the following options (as well)
--disable-perlinterp --enable-rubyinterp --enable-multibyte --enable-pythoninterp --with-features=huge as I like my version of Vim to be quite complete.
Create local user path:
mkdir -p ~/usr/local
Downloaded latest version of
ncurses from here: http://ftp.gnu.org/pub/gnu/ncurses/
cd <path_to_ncurses_downloaded_folder> tar -xzvf <ncurses>.tar.gz cd <ncurses_extracted_folder> ./configure --prefix=$HOME/usr/local make make install
git clone https://github.com/vim/vim.git
Install vim with:
cd vim/src LDFLAGS=-L$HOME/usr/local/lib ./configure --prefix=$HOME/usr/local make make install
Set PATH with