Monday, July 25, 2022

Re: Building in WSL



'Suresh Govindachar' via vim_use <vim_use@googlegroups.com> schrieb am Mo., 25. Juli 2022, 09:00:
On 7/25/2022 7:24 AM, 'Suresh Govindachar' via vim_use wrote:
> On 7/24/2022 8:42 AM, 'Suresh Govindachar' via vim_use wrote:

>> Details are provided after the questions pertaining to WSL 2 Ubuntu
>> 20.04 inside Microsot Windows 11:
>>
>>    "git clone; cd vim/src"

make clean
make distclean
./configure --prefix=/usr --enable-gui --enable-gui=gtk3
--with-features=huge
make && make test


Questions:

....
3) How to install so that the existing version disappears?


Why to care about existing version? It is perfectly possible to configure with default prefix /usr/local and call "make install" at the end. New [g]vim will happily live in /usr/local/bin and it's runtime files also somewhere in /usr/local. Last thing is in your .profile or .bashrc or whatever shell you prefer: "export PATH=/usr/local/bin:$PATH" - that way local bin will be first and running vim or gvim you will always get your own "local" version. May be even /usr/local/bin is already in your PATH, because it so common, please check

(Repeat part with PATH=/usr/local/bin:$PATH for all users with which you may login to wsl, eg root?)

With best regards, Anton

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAMoRF4n1MvXiFCBsrucXtQvRLEFAJyOY4LtG%3DFXK1Rq3mqmY-w%40mail.gmail.com.

No comments:

Post a Comment