Christian wrote:

> On Di, 27 Jun 2023, Devin Weaver wrote:
> 
> > On a fresh Ubuntu install attempting to run “make install” has an error:
> > 
> > cd /usr/bin; ln -s vim ex
> > ln: failed to create symbolic link 'ex': File exists
> > make[1]: *** [Makefile:2687: /usr/bin/ex] Error 1
> > make[1]: Leaving directory '/home/suki/source/vim/src'
> > make: *** [Makefile:39: install] Error 2
> > 
> > ls /usr/bin/ex
> > lrwxrwxrwx 1 root root 20 Feb 17 17:24 /usr/bin/ex -> /etc/alternatives/ex*
> > 
> So you probably have a package installed, that provides `/usr/bin/ex`. 
> Try `dpkg -S $(realpath $(which ex))`

Mixing Vim packages installed with the regular installer interferes with
what you install manually.  It's best to keep them separate to avoid
trouble.

For me:
        % ls -l /etc/alternatives/ex
        lrwxrwxrwx 1 root root 17 May 24  2020 /etc/alternatives/ex -> 
/usr/bin/vim.gtk3

> > I’m not so sure what to do about that. Hadn’t run into this before.
> 
> I would recommend, to use ./configure --prefix=$HOME/local/
> 
> to install into your local directory. Then you also do not need to use 
> sudo to run make install
> 
> Just make sure, to add $HOME/local/bin to your $PATH

The Makefile has a line that you can uncomment:

        # Uncomment the next line to install Vim in your home directory.
        #prefix = $(HOME)

No need to add "/local".  Your path should include "$HOME/bin" then.

An alternative is to use "/usr/local".  That should actually be the
default.

-- 
Hear about the guy who played a blank tape at full blast?
The mime next door went nuts.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230629163955.AF1DE1C0437%40moolenaar.net.

Raspunde prin e-mail lui