I'm trying to install gVim 9 on Mint 21.3 Cinnamon.
configure complained about a missing library, and sudo apt install libncurses-dev made that go away. Then, after I complied it using make, vim worked great… but gvim was missing and vim -g said I compiled without the GUI option.
Um, I'm fairly sure I actually did?
./configure --enable-fail-if-missing --enable-gui=gtk3 --enable-gtk3-check --enable-python3interp=yes --enable-terminal --enable-autoservername
Turns out I got bitten by this bug, and 'no GUI support' was buried in the configure output.
Okay, so hopefully that bug will be fixed, but how do I get gVim compiled?
My system definitely has GTK3:
$ gtk-launch --version
3.24.33
Are there other packages I need to install or special flags I need?
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Please check the patch.
It is not fixed because no response.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@Shougo: Thanks, but I'm not sure this answers my question. (Admittedly I buried the lede, so fair enough if you missed it.)
How can I install gVim? Is merging in the patch the only way, or is 'No GUI support' a legitimate error, and I need to install additional packages?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Aha, so even though Ubuntu comes with an ancient build for Vim itself, the vim-gtk3 package is current enough? Great, I'll try that. Appreciate your help.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
$ sudo apt-get build-dep vim-gtk3 Reading package lists... Done E: You must put some 'deb-src' URIs in your sources.list
@vim-ml: I could probably muck around with trial and error, but would you happen to know the best sources for me to add? Cheers.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Open /etc/apt/sources.list and if there is no deb-src, duplicate existing deb ... and replace it with deb-src, e.g.
deb http://deb.debian.org/debian bookworm main
deb-src http://deb.debian.org/debian bookworm main
deb http://deb.debian.org/debian bookworm-updates main
deb-src http://deb.debian.org/debian bookworm-updates main
deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main
deb http://ftp.debian.org/debian bookworm-backports main
deb-src http://ftp.debian.org/debian bookworm-backports main
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
Oh, you're on ubuntu. Then don't do what I suggested (I don't know if it would work there).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
I'm not on Ubuntu; I'm on Mint. /etc/apt/sources.list is empty.
I tried adding deb-src entries for every entry in /etc/apt/sources.list.d/official-package-repositories.list. Then I got this:
$ sudo apt-get build-dep vim-gtk3
Reading package lists... Done
Picking 'vim' as source package instead of 'vim-gtk3'
E: Unable to find a source package for vim-gtk3
Can you think of anything else to try?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
I also tried sudo apt install build-essential libncurses5-dev libx11-dev libxpm-dev libxt-dev python-dev. It complained about python-dev (I have deadsnakes installed) so I left it off. Then got the same results for sudo apt-get build-dep vim-gtk3, and when I tried 'make distclean', 'make clean', the configure command above and make, I got the same results for src/gvim -g. So it seems something's still missing, or that the build process isn't seeing GTK for some other reason.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
I know nothing about mint, sorry.
fwiw, check #5229
Try to install libgtk-3-dev library
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
https://packages.ubuntu.com/oracular/vim-gtk3
You can see the dependencies.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
libgtk-3-dev
@habamax: That was the missing puzzle piece. Thanks very much.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
Yep, I apt searched for various GTK things, but didn't think to try 'libgtk-3-dev'. That, in the end, was what was missing. Cheers.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()
You can download an appimage for gVim from https://github.com/vim/vim-appimage
—
Reply to this email directly, view it on GitHub.
You are receiving this because you were mentioned.![]()