karlstav / cava

Cross-platform Audio Visualizer
MIT License
3.92k stars 225 forks source link

error while loading shared libraries: libiniparser.so #568

Open SherLock707 opened 1 month ago

SherLock707 commented 1 month ago

Describe the bug

When I launch Cava I get following error: cava: error while loading shared libraries: libiniparser.so.1: cannot open shared object file: No such file or directory

To Reproduce

Steps to reproduce the behavior:

  1. Open terminal
  2. Run cava

Expected behavior

Cava without error.

Screenshots

image

Desktop (please complete the following information):

Terminal emulator

Additional context It was working fine for past 6 months. Did not use it for few days, when I tried today, I got this issue. I have /usr/lib/libiniparser.so

leombrunk commented 1 month ago

Looks like this https://gitlab.archlinux.org/archlinux/packaging/packages/iniparser/-/commit/11885ca3a924ac52a0329ccf95f8314663f9ebc6 removed the line ln -sf libiniparser.so.1 "${pkgdir}"/usr/lib/libiniparser.so

karlstav commented 1 month ago

could be that the package was changed from providing a .1 to not providing a .1. Try doing a complete reinstall of cava.

eyal670 commented 1 month ago

I have the same problem cava: error while loading shared libraries: libiniparser.so.1: cannot open shared object file: No such file or directory trying to reinstall cava did not solve the problem

my machine: OS: Arch Linux x86_64 Kernel: Linux 6.9.2-arch1-1 Shell: zsh 5.9 DE: bspwm WM: LG3D (X11) Cursor: Adwaita Terminal: alacritty 0.13.2 Terminal Font: Hack Nerd Font (12pt) CPU: Intel(R) Core(TM) i5-8250U (8) @ 3.40 GHz GPU: Intel UHD Graphics 620 @ 1.10 GHz [Integrated] Memory: 3.57 GiB / 7.54 GiB

SherLock707 commented 1 month ago

could be that the package was changed from providing a .1 to not providing a .1. Try doing a complete reinstall of cava.

I did try reinstalling before filing here.. error stayed the same.

karlstav commented 1 month ago

I thought maybe that a rebuild would make it search for the library again and find the correct one. I don't think that there is anything in the cava build stuff that makes it look for the .1 link or not the .1

You would have to check with the iniparser arch package maintainer why the .1 was removed and how it is supposed to work now.

mementomori74 commented 1 month ago

i have the same problem. using arcolinux (arch based)

Levvonci commented 1 month ago

Same issue here, Arch + Hyprland

karlstav commented 1 month ago

I thought that the linker would look for libiniparser.sowhen doing -liniparser. Normally libiniparser.so whould be a link to libiniparser.so.1 and the the linker would use that file instead, but if it was not a link that should also be fine. However if some update removed the libiniparser.so.1 and made libiniparser.so the only file available then any program linking to libiniparser.so.1 would start failing. However a rebuild should fix that.

did any of you arch people actually clone and build from source?

Levvonci commented 1 month ago

Got a fix, simply uninstalled the aur pkg cava, clone the repo and build it

mementomori74 commented 1 month ago

I thought that the linker would look for libiniparser.sowhen doing -liniparser. Normally libiniparser.so whould be a link to libiniparser.so.1 and the the linker would use that file instead, but if it was not a link that should also be fine. However if some update removed the libiniparser.so.1 and made libiniparser.so the only file available then any program linking to libiniparser.so.1 would start failing. However a rebuild should fix that.

did any of you arch people actually clone and build from source?

nope sorry will do that now

eyal670 commented 1 month ago

I can confirm that installing the AUR package cava-git is working as expected