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
asked Jul 19, 2017 by anonymous

1 Answer

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)
answered Jul 19, 2017 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Related questions

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...