polybar: error while loading shared libraries: libjsoncpp.so.21: cannot open shared object file: No such file or directory
Describe the issue
Updated to the latest version using yay
What actually happens
Whenever I try to launch, I get this error message :
error while loading shared libraries: libjsoncpp.so.21: cannot open shared object file: No such file or directory
Environment:
- WM: I3
- Distro: Arch
- Output of
polybar -vvv: error while loading shared libraries: libjsoncpp.so.21: cannot open shared object file: No such file or directory
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (6 by maintainers)
this is caused by jsoncpp upgrade. just rebuild the polybar.
if you’re on arch this should help no matter what aur helper you’re using:
oh, yeah, if you’re using prebuilt polybar binary provided by a some package, then it must be rebuilt by package maintainer i guess…
i had this problem today after updating my system. then, i removed it
sudo pacman -R polybarand installed it from AURyay -S polybar-git. It solved the problem!!!I got this issue again. But I managed to “fix” it with a very easy symlink:
ln -s /lib/libjsoncpp.so.25 /lib/libjsoncpp.so.24See https://github.com/polybar/polybar/wiki/Known-Issues#error-while-loading-shared-libraries-libjsoncpp
add path to your env
export LD_LIBRARY_PATH=/usr/local/lib64