WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7

WPS’ 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)

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

One comment:

Leave a Reply

Your email address will not be published. Required fields are marked *