Skip to content

Issues after clean building polybar

polybar: error while loading shared libraries: libjsoncpp.so.22: cannot open shared object file: No such file or directory

I get this error message after clean building polybar. I know that this is a common issue and the fix for it is to clean build polybar. I tried to install by building from source and ran into "error 2" with random errors throughout the code. This error is output after a successful installation using yay.

0 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 33% up
Kind
Text
ID
inakph

Author

7
posts
12
comments
0
media
View profile

3 comments

How are you clean building it? Are you cloning the repo and building it?

git clone https://aur.archlinux.org/polybar.git
cd polybar
makepkg -sfi
1 points

I did exactly that and I still got the same error when trying to run the launch script.

1 points

Do you maybe have multiple versions of polybar installed? Because the error message you are getting cannot come from a clean install on an up-to-date arch system. libjsoncpp.so.22 is no longer shipped with jsoncpp since I think June.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.