Wednesday, November 7, 2018

Re: Compiling Vim on Ubuntu

David Fishburn wrote:

> Thank you gentlemen, I have a working GUI Vim now on Ubuntu.
>
> One last problem.
>
> gvim
> :ver
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
> Included patches: 1-1689
> Extra patches: 8.0.0056
> Modified by pkg-vim-maintainers@lists.alioth.debian.org
> Compiled by pkg-vim-maintainers@lists.alioth.debian.org
> Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
>
>
> cd /vim8/src
> ./vim -g
> :ver
> VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 7 2018 10:51:26)
> Included patches: 1-511
> Compiled by me
> Huge version with GTK2 GUI. Features included (+) or not (-):
>
> I would have thought running the make install should have fixed that up.
>
> $ ls -la /usr/bin/gvim
> lrwxrwxrwx 1 root root 22 Nov 5 19:02 /usr/bin/gvim -> /etc/alternatives/gvim*
>
> I had to (I did a --prefix=/usr):
> unlink /usr/bin/gvim
> make install

That's a bad idea. You should never put your own
things in /usr/bin since it's meant to be managed by
apt packages. You can mess up your Ubuntu packages
when doing that. Instead, things that you build yourself
should go in /usr/local/bin which is the default location
if you follow the steps I described in my previous message.
You'll need to make sure that /usr/local/bin is in your path
before /usr/bin which I think is normally the case by
default on Ubuntu.

> Then it setup my gvim:
> $ ls -la /usr/bin/gvim
> lrwxrwxrwx 1 root root 3 Nov 7 12:48 /usr/bin/gvim -> vim*

As an experiment, I deleted my /usr/local/bin than rebuilt
the gtk3 vim gui and installed it. I could see a symlink as
expected:

$ ls -l /usr/local/bin/gvim
lrwxrwxrwx 1 root root 3 nov 7 21:25 /usr/local/bin/gvim -> vim

This is what I did:

$ ./configure --with-features=huge --enable-gui=gtk3
--enable-python3interp --enable-pythoninterp=yes
$ make -j8
$ sudo make install

I don't know why the symlink is not created for you, but
it's best if you try to installed it in /usr/local/bin in any case.

Regards
Dominique

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: