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:

errorinfo

How can I solve this? Can I install it in another directory other than /usr/local/bin/vim?

link|improve this question

feedback

2 Answers

up vote 4 down vote accepted

make install DESTDIR=~/.local, then make a symlink in ~/bin to ~/.local/bin/vim.

link|improve this answer
Do I need to create a fold named .local or it's just a normal name? – SpawnST Jul 12 '10 at 9:24
1  
It is safest to create the destination directory yourself. – Ignacio Vazquez-Abrams Jul 12 '10 at 9:31
I got a vim diretory like /home/apache/.local/usr/local/share/vim/vim72 after finish the two steps.Anything wrong? – SpawnST Jul 12 '10 at 9:36
You'll need to pass a different --prefix option to configure as well then. – Ignacio Vazquez-Abrams Jul 12 '10 at 9:38
3  
./configure --prefix=~/.local && make install – akira Jul 12 '10 at 10:33
show 2 more comments
feedback

I often install things with ./configure --prefix=$HOME && make && make install where I'm not root. That's the way to proceed.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.