Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

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

share|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
2  
it would be greatly appreciated if you can write all steps down in the answer. –  SpawnST Jul 12 '10 at 9:44
3  
./configure --prefix=~/.local && make install –  akira Jul 12 '10 at 10:33
show 2 more comments

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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