WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7
Posted on In QAWPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7 as follows:
$ wpp
/opt/kingsoft/wps-office/office6/wpp: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
The reason:
wpp
will tries to dynamically link ‘libbz2.so.1.0’
$ ldd /opt/kingsoft/wps-office/office6/wpp | grep libbz2
libbz2.so.1.0 => not found
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fd10a513000)
while it is not available in CentOS 7:
# ls /lib64/libbz2.so*
/lib64/libbz2.so.1 /lib64/libbz2.so.1.0.6
The solution:
While ‘libbz2.so.1.0’ is not there, ‘libbz2.so.1’ is there and it is very likely it works well as for ‘libbz2.so.1.0’. We can make a symbolic link to pretend there is a ‘libbz2.so.1.0’.
# ln -s /lib64/libbz2.so.1 /lib64/libbz2.so.1.0
Then it looks like this in /lib64/:
# ls /lib64/libbz2.so*
/lib64/libbz2.so.1 /lib64/libbz2.so.1.0 /lib64/libbz2.so.1.0.6
wpp
will be happy now:
$ ldd /opt/kingsoft/wps-office/office6/wpp | grep libbz2
libbz2.so.1.0 => /lib64/libbz2.so.1.0 (0x00007f89400e4000)
thank you for this it’s working on fedora 27. Have a nice day