swww icon indicating copy to clipboard operation
swww copied to clipboard

rustc: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

Open tundruh opened this issue 10 months ago • 1 comments

Trying to install swww-git on EndeavourOS, get the following output from yay:

yay -S swww-git
AUR Explicit (1): swww-git-0.9.5.r183.g3e2e2ba-1
:: PKGBUILD up to date, skipping download: swww-git
  1 swww-git                         (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/tundruh/.cache/yay/swww-git
HEAD is now at a44ef10 fix: remove leading 'v' in pkgver
Skipping repository src/swww-git
Removing swww-git/
  1 swww-git                         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: swww-git 0.9.5.r183.g3e2e2ba-1 (Fri 02 May 2025 07:52:09 PM PDT)
==> Retrieving sources...
  -> Cloning swww-git git repo...
Cloning into bare repository '/home/tundruh/.cache/yay/swww-git/swww-git'...
remote: Enumerating objects: 6813, done.
remote: Counting objects: 100% (1316/1316), done.
remote: Compressing objects: 100% (347/347), done.
remote: Total 6813 (delta 1133), reused 969 (delta 969), pack-reused 5497 (from 1)
Receiving objects: 100% (6813/6813), 89.18 MiB | 2.03 MiB/s, done.
Resolving deltas: 100% (3655/3655), done.
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    swww-git ... Skipped
:: (1/1) Parsing SRCINFO: swww-git
==> Making package: swww-git 0.9.5.r183.g3e2e2ba-1 (Fri 02 May 2025 07:52:54 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating swww-git git repo...
==> Validating source files with sha256sums...
    swww-git ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of swww-git git repo...
Cloning into 'swww-git'...
done.
==> Starting prepare()...
    Updating crates.io index
     Locking 17 packages to latest compatible versions
    Updating assert_cmd v2.0.16 -> v2.0.17
    Updating bstr v1.11.3 -> v1.12.0
    Updating bytemuck v1.22.0 -> v1.23.0
    Updating clap v4.5.35 -> v4.5.37
    Updating clap_builder v4.5.35 -> v4.5.37
    Updating clap_complete v4.5.47 -> v4.5.48
    Updating errno v0.3.10 -> v0.3.11
    Updating fast_image_resize v5.1.2 -> v5.1.3
    Updating half v2.5.0 -> v2.6.0
    Updating libc v0.2.171 -> v0.2.172
    Updating libm v0.2.11 -> v0.2.13
    Updating linux-raw-sys v0.9.3 -> v0.9.4
    Updating miniz_oxide v0.8.5 -> v0.8.8
    Updating proc-macro2 v1.0.94 -> v1.0.95
    Updating rustix v1.0.5 -> v1.0.7
    Updating smallvec v1.14.0 -> v1.15.0
    Updating syn v2.0.100 -> v2.0.101
note: pass `--verbose` to see 1 unchanged dependencies behind latest
rustc: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
error: target was empty
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: swww-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
swww-git - exit status 4

swww installs fine, but does not work with vertical monitor wallpaper scaling/filling.

I do have libxml2 installed, and I have added /usr/local/lib/ to /etc/ld.so.conf. Probably isn't a solution, but can't find my related issue anywhere else.

Appreciate any insight on this.

tundruh avatar May 03 '25 02:05 tundruh

This is very weird because, as far as I know, we do not have a dependency on libxml2. I would first have to find out where that dependency is even coming from.

LGFae avatar May 14 '25 12:05 LGFae