hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.36k stars 898 forks source link

Hyprland: error while loading shared libraries: libhyprutils.so.0: cannot open shared object file: No such file or directory #7185

Closed Brad1944 closed 2 months ago

Brad1944 commented 2 months ago

Regression?

Yes

System Info and Version

System/Version info Manjaro Hyprland version: hyprland-git-0.41.2.r80.a5f58a31-1 (AUR) Hyprutils version: hyprutils-git 0.2.1.r0.g5dcbbc1e-1 (AUR) ```sh hyprctl systeminfo -c HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?) idk how to use this command without getting hyprland to run ```

Description

Hyprland won't start after system update (yay -Syu --devel)

How to reproduce

/bin/Hyprland

Crash reports, logs, images, videos

Crash report not present, only this error Hyprland: error while loading shared libraries: libhyprutils.so.0: cannot open shared object file: No such file or directory

JassonCordones commented 2 months ago

did you clean build while updating?

vaxerski commented 2 months ago

this is not a hyprland bug

moazzammoriani commented 2 months ago

I'm getting the same issue as this so I have to ask

did you clean build while updating?

@JassonCordones how would I go about doing this?

Brad1944 commented 2 months ago

did you clean build while updating?

@JassonCordones Can't really confirm. How can I try doing one?

Brad1944 commented 2 months ago

did you clean build while updating?

Can't really confirm. How can I try doing one?

Figured out how, even tried deleting whole ~/.cache/yay and ~/.cache/pacman + yay cleanbuild but it still doesn't work

MightyPlaza commented 2 months ago

see https://github.com/hyprwm/Hyprland/issues/7142

Brad1944 commented 2 months ago

Fixed it, If anyone stumbles upon the same issue, create a symlink in /usr/lib/libhyprutils.so.0 that directs to /usr/lib/libhyprutils.so.0.x.x (e.g 0.2.1)

cd /usr/lib
sudo ln -s libhyprutils.so.0.2.1 libhyprutils.so.0
sudo chmod 777 libhyprutils.so.0

(Be sure to recreate the symlink everytime hyprutils updates, atleast until the package is fixed)

Though, this isn't a permanent fix. It should be somewhat related to the AUR / Hyprutils package itself

vaxerski commented 2 months ago

this is a horrible fix that will make stuff crash

Brad1944 commented 2 months ago

this is a horrible fix that will make stuff crash

not really calling it a "fix", more of a hacky workaround. Real fix would need modification in the package itself

MightyPlaza commented 2 months ago

this is a horrible fix that will make stuff crash

not really calling it a "fix", more of a hacky workaround. Real fix would need modification in the package itself

what's the output of pacman -Qs hypr?

Brad1944 commented 2 months ago

~$ pacman -Qs hypr local/hyprcursor-git 0.1.9.r11.g912d5602-1 The hyprland cursor format, library and utilities local/hypridle-git 0.1.2.r12.g96d51ec2-1 Hyprland's idle daemon local/hyprland-git 0.41.2.r166.0e86808e-1 Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks. local/hyprlang-git 0.5.2.r8.gadbefbf4-1 The official implementation library for the hypr config language local/hyprlock-git 0.4.1.r8.g8cffe061-1 Hyprland's GPU-accelerated screen locking utility local/hyprpicker-git 0.3.0.r9.c36676a-1 A wlroots-compatible Wayland color picker that does not suck local/hyprutils-git 0.2.1.r1.g0252fd13-1 Hyprland utilities library used across the ecosystem local/hyprwayland-scanner-git 0.4.0.r4.ga048a6cb-1 A Hyprland implementation of wayland-scanner, in and for C++ local/xdg-desktop-portal-hyprland-git 1.3.2.r4.gb9b97e5b-1 xdg-desktop-portal backend for hyprland

MightyPlaza commented 2 months ago

you're most likely running a (older) Hyprland binary unrelated to the current aur package, like in the issue I linked see which Hyprland you're running and see if it's the right binary

Brad1944 commented 2 months ago

you're most likely running a (older) Hyprland binary unrelated to the current aur package, like in the issue I linked see which Hyprland you're running and see if it's the right binary

image

fschuindt commented 4 weeks ago

What @MightyPlaza said was truth for me.

This how I fixed it on Arch linux. Please, don't try blindly to run these commands, you should understand the gist of what I'm doing and then try the same for you. Basically, I'm uninstalling everything Hyrpland related, installing it again, and re-compiling Hyprland. This usually works for me after a system upgrade break something.

#!/bin/bash

# Remove packages related to Hyprland.
# (You might have others, or not have some of these)
sudo pacman -R aquamarine hyprland hyprutils
yay -R aquamarine-git hyprland-git hyprutils-git \
    tomlplusplus hyprlang hyprcursor \
    hyprwayland-scanner xcb-util-errors

# Install necessary packages
sudo pacman -S gdb ninja gcc cmake meson libxcb \
     cb-proto xcb-util xcb-util-keysyms libxfixes \
     libx11 libxcomposite xorg-xinput libxrender \
     pixman wayland-protocols cairo pango seatd \
     libxkbcommon xcb-util-wm xorg-xwayland \
     libinput libliftoff libdisplay-info cpio

# Reinstall the packages we removed
yay -S tomlplusplus hyprlang hyprcursor \
    hyprwayland-scanner xcb-util-errors \
    hyprutils-git aquamarine-git

# Clone Hyprland and build it
git clone --recursive https://github.com/hyprwm/Hyprland
cd Hyprland
make all && sudo make install