You are not logged in.

#1 2025-06-29 16:51:36

5had0w
Member
Registered: 2025-06-29
Posts: 4

[SOLVED]Vim cannot be used

Today I tried to execute the following command to update.

pacman -Syu

But unfortunately, the error was related to NVIDIA, so I searched and found a solution on the forum, which is the following two instructions.

pacman -Rdd linux-firmware
pacman -Syu linux-firmware

Yes, I updated successfully, but Vim suddenly couldn't be used. I tried restarting, but it still didn't work.

This is an error message.

[root@arch homepage]# vim
vim: error while loading shared libraries: libwayland-client.so.0: cannot open shared object file: No such file or directory

May I ask what the reason is? Can someone help me?

Last edited by 5had0w (2025-07-01 05:44:55)

Offline

#2 2025-06-29 18:50:01

JuliettKiloFoxtrot
Member
Registered: 2025-06-29
Posts: 3

Re: [SOLVED]Vim cannot be used

I agree, vim is currently broken on any system that does not have the wayland package installed on it.

Why was libwayland-client.so.0 hard linked? If intentional, why doesn't pacman install wayland as well? Either the vim build is broken, or the package is missing the dependency.

0:> pacman -Q vim
vim 9.1.1492-1

0:> ldd /usr/bin/vim
        linux-vdso.so.1 (0x00007c86f1cdc000)
        libwayland-client.so.0 => not found
        libm.so.6 => /usr/lib/libm.so.6 (0x00007c86f1708000)
        libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007c86f1699000)
        libacl.so.1 => /usr/lib/libacl.so.1 (0x00007c86f1cc3000)
        libgpm.so.2 => /usr/lib/libgpm.so.2 (0x00007c86f1691000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007c86f14a1000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007c86f1cde000)

Offline

#3 2025-06-29 19:00:16

CrystalLattice
Member
Registered: 2024-04-26
Posts: 2

Re: [SOLVED]Vim cannot be used

I've also noticed this issue. I've tried looking at some of the recent changes to vim but I still don't fully understand the root cause. It appears that somehow vim has a new implicit dependency on a wayland library.
In my case, it would seem that downgrading vim to version 9.1.1431-1 does solve the issue (it's the most recent version I had in my pacman cache). There's a conflict with vim-runtime so I had to uninstall vim first.

# pacman -R vim
# pacman -U file:///var/cache/pacman/pkg/vim-runtime-9.1.1431-1-x86_64.pkg.tar.zst
# pacman -U file:///var/cache/pacman/pkg/vim-9.1.1431-1-x86_64.pkg.tar.zst

And then of course add them both to IgnorePkg in /etc/pacman.conf.

Alternatively, and more simply, this can be solved by just installing wayland. However, I would think that's more of a band-aid fix that doesn't really address the core issue. Vim isn't supposed to depend on wayland.

Offline

#4 2025-06-29 19:04:21

Whoracle
Member
Registered: 2010-11-02
Posts: 212

Re: [SOLVED]Vim cannot be used

Anyone of you got an account on gitlab.archlinux.org? I don't, but if you have, maybe raise an issue in https://gitlab.archlinux.org/archlinux/ … m/-/issues about this.

Offline

#5 2025-06-29 19:25:42

CrystalLattice
Member
Registered: 2024-04-26
Posts: 2

Re: [SOLVED]Vim cannot be used

Whoracle wrote:

Anyone of you got an account on gitlab.archlinux.org? I don't, but if you have, maybe raise an issue in https://gitlab.archlinux.org/archlinux/ … m/-/issues about this.

I don't either, but I just emailed asking for one. I'll raise an issue if my account is approved.

Offline

#6 2025-06-29 19:26:36

Whoracle
Member
Registered: 2010-11-02
Posts: 212

Re: [SOLVED]Vim cannot be used

CrystalLattice wrote:
Whoracle wrote:

Anyone of you got an account on gitlab.archlinux.org? I don't, but if you have, maybe raise an issue in https://gitlab.archlinux.org/archlinux/ … m/-/issues about this.

I don't either, but I just emailed asking for one. I'll raise an issue if my account is approved.

Same, about time I got myself one. Let's see who gets approved first wink

Offline

#7 2025-06-29 19:41:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [SOLVED]Vim cannot be used

I assume these are headless systems? The vast majority of Arch systems will have the wayland package, even many headless setups. As this appears to be an upstream change (inclusion of Wayland clipboard support), it'll probably just get added as a dep here.

Edit, looks like it could be disabled with --with-wayland=no, which could make sense for vim as opposed to gvim.

Last edited by Scimmia (2025-06-29 19:49:08)

Online

#8 2025-06-29 19:59:16

Whoracle
Member
Registered: 2010-11-02
Posts: 212

Re: [SOLVED]Vim cannot be used

No, desktop system in my case. And a few servers, but either way they need to add the dependency for the package or get rid of it.

Last edited by Whoracle (2025-06-29 20:06:21)

Offline

#9 2025-06-29 20:00:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [SOLVED]Vim cannot be used

How do you have a desktop system without mesa? Or GTK*? Or Qt*?

Last edited by Scimmia (2025-06-29 20:02:04)

Online

#10 2025-06-29 20:06:03

Whoracle
Member
Registered: 2010-11-02
Posts: 212

Re: [SOLVED]Vim cannot be used

Silly me, I checked on the wrong system. I have mesa, and thus wayland on my desktop. Was in the wrong terminal.

Point stands: Vim either needs to depend on wayland directly or get rid of it, or it we live with it not being useful on headless systems (and the upcoming archiso I'd guess - or does that have wayland installed for some reason? can't check easily atm)

Last edited by Whoracle (2025-06-29 20:06:49)

Offline

#11 2025-06-29 20:10:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Re: [SOLVED]Vim cannot be used

Historically this was split between vim and gvim, https://wiki.archlinux.org/title/Vim#Installation

Edit, forgot to ask: is anybody here using vim or is everybody installing gvim?
Edit #2: gvim drags in wayland via gtk3, so "no"
Edit #2: and OMG F5…

Last edited by seth (2025-06-29 20:16:30)

Offline

#12 2025-06-29 20:13:04

JuliettKiloFoxtrot
Member
Registered: 2025-06-29
Posts: 3

Re: [SOLVED]Vim cannot be used

Scimmia wrote:

Edit, looks like it could be disabled with --with-wayland=no, which could make sense for vim as opposed to gvim.

This is the route I'd go. As a system admin, I'd prefer to see vim kept lean, and features like clipboard support pushed to gvim.

Offline

#13 2025-06-29 20:15:44

JuliettKiloFoxtrot
Member
Registered: 2025-06-29
Posts: 3

Re: [SOLVED]Vim cannot be used

seth wrote:

Edit, forgot to ask: is anybody here using vim or is everybody installing gvim?

Vim, all of my Linux installs are headless servers, so no need for GUI functionality.

Offline

#14 2025-06-29 20:16:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [SOLVED]Vim cannot be used

seth wrote:

Edit, forgot to ask: is anybody here using vim or is everybody installing gvim?

This wouldn't apply to gvim, which pull in gtk3, and wayland through that.

Online

#15 2025-06-29 20:16:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Re: [SOLVED]Vim cannot be used

Yes, see my edit - too much action in this thread wink

Offline

#16 2025-06-29 22:14:55

alexindigo
Member
Registered: 2025-02-16
Posts: 6

Re: [SOLVED]Vim cannot be used

Same here, I use Arch on laptop, but terminal only, no GUI, and been using vim for 20+ years, always considered it as "lean&mean", it was super surprising to see dependency on wayland. I hope it doesn't mine bitcoin while I'm away.

Offline

#17 2025-06-29 22:25:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Offline

#18 2025-06-29 23:18:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Offline

#19 2025-06-30 13:32:20

5had0w
Member
Registered: 2025-06-29
Posts: 4

Re: [SOLVED]Vim cannot be used

Thank you all. In the end, I tried to directly compile the source code and install it, and it's ready to use

Offline

#20 2025-06-30 13:33:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [SOLVED]Vim cannot be used

That's an insane overreaction for something that's already been fixed.

Online

#21 2025-06-30 13:44:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,153

Re: [SOLVED]Vim cannot be used

Well if he did that before installing the fixed package I'd see that as an option.

Now that the package should be fixed, does reinstalling it fix your original issue and hence allow you to mark this as [SOLVED]?

Offline

#22 2025-07-01 02:31:18

5had0w
Member
Registered: 2025-06-29
Posts: 4

Re: [SOLVED]Vim cannot be used

Please help mark it as [SOLVED], thank you, I don't know how to mark it

Offline

#23 2025-07-01 02:45:20

dakota
Member
Registered: 2016-05-20
Posts: 417

Re: [SOLVED]Vim cannot be used

5had0w wrote:

Please help mark it as [SOLVED], thank you, I don't know how to mark it

Edit your first post and prepend the title with [SOLVED]

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#24 2025-07-01 05:45:44

5had0w
Member
Registered: 2025-06-29
Posts: 4

Re: [SOLVED]Vim cannot be used

dakota wrote:
5had0w wrote:

Please help mark it as [SOLVED], thank you, I don't know how to mark it

Edit your first post and prepend the title with [SOLVED]

Cheers,

Thanks!

Offline

Board footer

Powered by FluxBB