[vim/vim] No GUI support? (Discussion #16570)

64 views
Skip to first unread message

Michael Scheper

unread,
Feb 2, 2025, 8:00:14 PMFeb 2
to vim/vim, Subscribed

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.Message ID: <vim/vim/repo-discussions/16570@github.com>

Shougo

unread,
Feb 2, 2025, 8:26:24 PMFeb 2
to vim/vim, Subscribed

#15437 (comment)

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.Message ID: <vim/vim/repo-discussions/16570/comments/12035764@github.com>

Michael Scheper

unread,
Feb 3, 2025, 6:13:53 PMFeb 3
to vim/vim, Subscribed

@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.Message ID: <vim/vim/repo-discussions/16570/comments/12048668@github.com>

Gary Johnson

unread,
Feb 3, 2025, 6:42:54 PMFeb 3
to reply+ACY5DGEPLRHQ5YUUGC...@reply.github.com, vim...@googlegroups.com
On 2025-02-03, Michael Scheper (Vim Github Repository) wrote:

> 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?

You need to install additional packages.

The output of ./configure probably has "no" following the test for
some package for gvim, but one not needed for terminal vim, so it
wasn't flagged beyond the "no".

I ran 'make distclean' in my vim source directory, then ran your
configure command followed by 'make'. Executing 'src/vim -g'
produced a gvim window. So, your configure command worked.

On an Ubuntu system where I haven't yet built vim, I run

$ sudo apt-get build-dep vim-gtk3

to get the gvim dependencies. It should be similar for mint.

HTH,
Gary

vim-dev ML

unread,
Feb 3, 2025, 6:43:26 PMFeb 3
to vim/vim, vim-dev ML, Your activity


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/16570/comments/12048864@github.com>

Michael Scheper

unread,
Feb 3, 2025, 6:53:09 PMFeb 3
to vim/vim, vim-dev ML, Comment

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.Message ID: <vim/vim/repo-discussions/16570/comments/12048950@github.com>

Michael Scheper

unread,
Feb 3, 2025, 6:57:53 PMFeb 3
to vim/vim, vim-dev ML, Mention

$ 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.Message ID: <vim/vim/repo-discussions/16570/comments/12048969@github.com>

Gary Johnson

unread,
Feb 3, 2025, 7:26:28 PMFeb 3
to reply+ACY5DGAZFGKXVKGYNM...@reply.github.com, vim...@googlegroups.com
On 2025-02-03, Michael Scheper (Vim Github Repository) wrote:
> $ 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.

It's always something, isn't it?

I avoid the trial and error by uncommenting all the deb-src lines.
I don't know how the new /etc/apt/sources.list.d scheme works.

Regards,
Gary

vim-dev ML

unread,
Feb 3, 2025, 7:27:01 PMFeb 3
to vim/vim, vim-dev ML, Your activity


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/16570/comments/12049172@github.com>

Maxim Kim

unread,
Feb 3, 2025, 8:04:19 PMFeb 3
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12049406@github.com>

Maxim Kim

unread,
Feb 3, 2025, 8:11:00 PMFeb 3
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12049448@github.com>

Michael Scheper

unread,
Feb 3, 2025, 9:01:40 PMFeb 3
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12049770@github.com>

Michael Scheper

unread,
Feb 3, 2025, 9:08:46 PMFeb 3
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12049806@github.com>

Maxim Kim

unread,
Feb 3, 2025, 9:28:52 PMFeb 3
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12049916@github.com>

Antonio Giovanni Colombo

unread,
Feb 4, 2025, 12:25:18 PMFeb 4
to vim...@googlegroups.com, reply+ACY5DGCNVQQUUKRWKW...@reply.github.com
Hi Michael,

I installed Vim on Linux Mint 22.1 (Xia) ...in Italy.

I had to download a few libraries, but I don't recall exactly what I did.

This is some info about my system, and the output of :ver
I hope it can help you in finding the missing libraries...

All the best, Antonio
====================
System:
  Host: azc100-X580VN Kernel: 6.8.0-52-generic arch: x86_64 bits: 64
  Desktop: Cinnamon v: 6.4.6 Distro: Linux Mint 22.1 Xia
====================
:ver
VIM - Vi IMproved 9.1 (2024 Jan 02, compilata Feb  4 2025 06:25:55)
Patch incluse: 1-1074
Compilato da azc100@azc100-X580VN
Versione gigante con GUI GTK3.  Funzionalità incluse (+) o escluse (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
+balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
+browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     -perl              +title
+channel           +ipv6              +persistent_undo   +toolbar
+cindent           +job               +popupwin          +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +vim9script
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           -python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
+conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          +rightleft         +vreplace
+cscope            +localmap          -ruby              +wildignore
+cursorbind        -lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con_gui    +mksession         +smartindent       +writebackup
+diff              +modify_fname      -sodium            +X11
+digraphs          +mouse             -sound             +xattr
+dnd               +mouseshape        +spell             -xfontset
-ebcdic            +mouse_dec         +startuptime       +xim
+emacs_tags        -mouse_gpm         +statusline        -xpm
+eval              -mouse_jsbterm     -sun_workshop      +xsmp_interact
+ex_extra          +mouse_netterm     +syntax            +xterm_clipboard
+extra_search      +mouse_sgr         +tag_binary        -xterm_save
-farsi             -mouse_sysmouse    -tag_old_static
   file vimrc di sistema: "$VIM/vimrc"
       file vimrc utente: "$HOME/.vimrc"
    II file vimrc utente: "~/.vim/vimrc"
   III file vimrc utente: "~/.config/vim/vimrc"
        file exrc utente: "$HOME/.exrc"
  file gvimrc di sistema: "$VIM/gvimrc"
      file gvimrc utente: "$HOME/.gvimrc"
   II file gvimrc utente: "~/.vim/gvimrc"
  III file gvimrc utente: "~/.config/vim/gvimrc"
        file dei default: "$VIMRUNTIME/defaults.vim"
    file menù di sistema: "$VIMRUNTIME/menu.vim"
         $VIM di riserva: "/usr/local/share/vim"
Compilazione: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk
-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/
glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/l
ibpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr
/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/includ
e/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/
atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/db
us-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -g -Wall -Wextra -Wsh
adow -Wmissing-prototypes -Wunreachable-code -Wno-cast-function-type -Wno-deprecat
ed-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Link: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 -lz -lpangocairo
-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lg
io-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltin
fo -lselinux
Premi INVIO o un comando per proseguire



vim-dev ML

unread,
Feb 4, 2025, 12:25:48 PMFeb 4
to vim/vim, vim-dev ML, Your activity

Hi Michael,

I installed Vim on Linux Mint 22.1 (Xia) ...in Italy.

I had to download a few libraries, but I don't recall exactly what I did.

This is some info about my system, and the output of :ver
I hope it can help you in finding the missing libraries...

All the best, Antonio
====================
System:
Host: azc100-X580VN Kernel: 6.8.0-52-generic arch: x86_64 bits: 64
Desktop: Cinnamon v: 6.4.6 Distro: Linux Mint 22.1 Xia
====================
:ver
VIM - Vi IMproved 9.1 (2024 Jan 02, compilata Feb 4 2025 06:25:55)
Patch incluse: 1-1074
Compilato da ***@***.***
***@***.***> ha scritto:

> 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
> <https://github.com/vim/vim/issues/15437>, 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
> <https://github.com/vim/vim/discussions/16570>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACY5DGHAJ3ELBCOFAMEFO7D2N25RHAVCNFSM6AAAAABWK7DO3GVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXHEYDONBSGQ>
> .
> 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.Message ID: <vim/vim/repo-discussions/16570/comments/12057717@github.com>

Shougo

unread,
Feb 4, 2025, 8:39:18 PMFeb 4
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12061588@github.com>

Tony Mechelynck

unread,
Feb 6, 2025, 12:30:54 AMFeb 6
to vim...@googlegroups.com, reply+ACY5DGCNVQQUUKRWKW...@reply.github.com, vim/vim, Subscribed
On Mon, Feb 3, 2025 at 2:00 AM Michael Scheper
<vim-dev...@256bit.org> wrote:
>
> 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!

If you have the GTK3 package, and everything that it requires, that is
enough to use executables compiled by others and using GTK3. To
compile a GTK3 program yourself (such as gvim with GTK3) you also need
the GTK3 _development_ package which is usually named (depending on
your Linux distro) gtk3-dev or gtk3-devel. So my counsel is to search
your distro's software repository for packages whose name starts with
"gtk3", not "case sensitive" if that option is offered, sort by
package name, and scan for something named either "gtk3-dev" or
"gtk3-devel" with nothing after it in the name. My bet is that such a
package is available but not installed, and that after you install it,
configure + make + make install will give you a GUI-enabled version of
Vim, with GTK3, which can be run as gvim.

I could tell you the exact procedure for openSUSE Linux which is what
I use, but I know absolutely nothing about Mint so I can give you only
the general lines of what to do but not the details.

Best regards,
Tony.

vim-dev ML

unread,
Feb 6, 2025, 12:31:25 AMFeb 6
to vim/vim, vim-dev ML, Your activity

On Mon, Feb 3, 2025 at 2:00 AM Michael Scheper
***@***.***> wrote:
>
> 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!

If you have the GTK3 package, and everything that it requires, that is
enough to use executables compiled by others and using GTK3. To
compile a GTK3 program yourself (such as gvim with GTK3) you also need
the GTK3 _development_ package which is usually named (depending on
your Linux distro) gtk3-dev or gtk3-devel. So my counsel is to search
your distro's software repository for packages whose name starts with
"gtk3", not "case sensitive" if that option is offered, sort by
package name, and scan for something named either "gtk3-dev" or
"gtk3-devel" with nothing after it in the name. My bet is that such a
package is available but not installed, and that after you install it,
configure + make + make install will give you a GUI-enabled version of
Vim, with GTK3, which can be run as gvim.

I could tell you the exact procedure for openSUSE Linux which is what
I use, but I know absolutely nothing about Mint so I can give you only
the general lines of what to do but not the details.

Best regards,
Tony.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/16570/comments/12077520@github.com>

Michael Scheper

unread,
Feb 7, 2025, 2:01:51 AMFeb 7
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12090568@github.com>

Michael Scheper

unread,
Feb 7, 2025, 2:04:41 AMFeb 7
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12090591@github.com>

Phạm Bình An

unread,
Mar 23, 2025, 9:10:22 PMMar 23
to vim/vim, vim-dev ML, Mention

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.Message ID: <vim/vim/repo-discussions/16570/comments/12596196@github.com>

Reply all
Reply to author
Forward
0 new messages