Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 13 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

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

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .