Error while loading shared libraries: libbz2.so.1.0: cannot open shared object file on CentOS 7

Whilst trying to build using electron-builder on CentOS 7, I ran into the following error message:

error while loading shared libraries: libbz2.so.1.0: cannot open shared object file

To fix it, you’ll need to install bzip2-devel, and potentially create a symlink too as libbz2.so.1 exists, but libbz2.so.1.0 doesn’t

sudo yum install bzip2-devel
sudo ln -s `find /usr/lib64/ -type f -name "libbz2.so.1*"` /usr/lib64/libbz2.so.1.0

2 thoughts on “Error while loading shared libraries: libbz2.so.1.0: cannot open shared object file on CentOS 7

Leave a Reply