linux上wps2019不能启动解决方法

本人linux上的wps2016升级成wps2019后启动不了,双击图标没反应,在命令行输入wps,提示"/lib64/libc.so.6: version `GLIBC_2.18' not found (required by /lib64/libstdc++.so.6)",此为GLIBC版本过低,即wps2019编译时使用了较高版本的glibc,而系统并不支持(可以用strings命令查看下系统中的GLIBC版本strings /lib64/libc.so.6 | grep GLIBC)。
解决方法:
下载新版的glibc:wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz
解压:tar -xf glibc-2.18.tar.gz
进入解压文件夹,创建文件夹build:
mkdir build
cd build

运行configure配置,make,make install (该过程花费时间至少5分钟,请做好心理准备)
../configure --prefix=/usr
make -j4
make install
问题解决。
备注:升级GLIBC有风险,系统可能瘫痪,参考:https://www.cnblogs.com/dartagnan/archive/2013/04/25/3042105.html
或https://blog.csdn.net/sole_cc/article/details/51415940
(貌似可以通过删除/etc/cron.d/wpsupdatetask , /etc/logrotate.d/wpsupdatelog 和 /etc/xdg/autostart/wps-office-update.desktop来屏蔽wps的自动升级?)

猜你喜欢

转载自www.cnblogs.com/liding111/p/10986615.html
今日推荐