22
10
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 /usr/local/bin/vim
?
22
10
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 /usr/local/bin/vim
?
18
make install DESTDIR=~/.local
, then make a symlink in ~/bin
to ~/.local/bin/vim
.
17
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.
1
Create local user path:
mkdir -p ~/usr/local
Downloaded latest version of ncurses
from here: http://ftp.gnu.org/pub/gnu/ncurses/
Install ncurses
:
cd <path_to_ncurses_downloaded_folder>
tar -xzvf <ncurses>.tar.gz
cd <ncurses_extracted_folder>
./configure --prefix=$HOME/usr/local
make
make install
Clone vim-repo
with
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
export PATH=$PATH:$HOME/usr/local/bin
0
step 1: make install DESTDIR=~/.local (make your local dir if it is not present)
step 2: export PATH=$PATH:/remote/users/yourusername/.local/bin
Do I need to create a fold named
.local
or it's just a normal name? – SpawnST – 2010-07-12T09:24:05.3771It is safest to create the destination directory yourself. – Ignacio Vazquez-Abrams – 2010-07-12T09:31:40.667
1I got a vim diretory like
/home/apache/.local/usr/local/share/vim/vim72
after finish the two steps.Anything wrong? – SpawnST – 2010-07-12T09:36:40.310You'll need to pass a different
--prefix
option toconfigure
as well then. – Ignacio Vazquez-Abrams – 2010-07-12T09:38:24.3474it would be greatly appreciated if you can write all steps down in the answer. – SpawnST – 2010-07-12T09:44:44.317
4./configure --prefix=~/.local && make install – akira – 2010-07-12T10:33:44.107