当前在线人数18852
首页 - 分类讨论区 - 电脑网络 - Linux 操作系统版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:install wps for linux on centos/rhel 6.x x86_64
[同主题阅读] [版面: Linux 操作系统] [作者:yanb] , 2018年01月05日00:37:24
yanb
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: yanb (呀), 信区: Linux
标  题: install wps for linux on centos/rhel 6.x x86_64
发信站: BBS 未名空间站 (Fri Jan  5 00:37:24 2018, 美东)

ref:
https://www.centos.org/forums/viewtopic.php?t=45470
http://wps-community.org/forum/viewtopic.php?f=4&t=374

1. wget http://kdl1.cache.wps.com/ksodl/download/linux/a21//wps-office-10.1.0.5707-1.a21.x86_64.rpm
2. sudo rpm -ivh --nodeps wps-office-10.1.0.5707-1.a21.x86_64.rpm
3. get the required versions of libstdc++ and libfreetype from the links
below:
http://rpm.pbone.net/index.php3?stat=26&dist=84&size=376849&name=freetype-2.4.8-4.fc17.x86_64.rpm
http://rpm.pbone.net/index.php3?stat=26&dist=84&size=277193&name=libstdc%2B%2B-4.7.0-5.fc17.x86_64.rpm

rpm2cpio freetype-2.4.8-4.fc17.x86_64.rpm | cpio -idmv
rpm2cpio libstdc++-4.7.0-5.fc17.x86_64.rpm | cpio -idmv

and find the 4 files and copy to wps installation location:
libfreetype.so.6.8.0
libfreetype.so.6
libstdc++.so.6.0.17
libstdc++.so.6
sudo cp lib* /opt/kingsoft/wps-office/office6/

4. install glibc2.14 separately!!!
wget https://ftp.gnu.org/gnu/libc/glibc-2.14.tar.gz
tar xf glibc-2.14.tar.gz
cd glibc-2.14
mkdir _build
cd _build/
export LD_LIBRARY_PATH= (if necessary)
../configure --prefix=/opt/glibc2.14
make -j12
sudo make install

5. run wps
export LD_LIBRARY_PATH=/opt/glibc2.14/lib
wps
wpp
et

wps和et退出时会显示: line 38: 64372 Segmentation fault      (core dumped) ${
gInstallPath}/office6/${gApp} ${gOptExt} ${gOpt} "[email protected]"
但不影响使用。

/opt/kingsoft/wps-office/office6/wpp: error while loading shared libraries:
liblzma.so.5: cannot open shared object file: No such file or directory
wpp这个问题很容易解决:

6. for wpp library issue
6.1
cd /usr/lib64
ln -s ../../lib64/libbz2.so.1 libbz2.so.1.0

6.2
http://rpm.pbone.net/index.php3/stat/4/idpl/33494697/dir/redhat_el_6/com/liblzma5-5.2.2-111.1.x86_64.rpm.html
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:
/AndreasStieger:/branches:/Archiving/RedHat_RHEL-6/x86_64/liblzma5-5.2.2-111
.1.x86_64.rpm
sudo rpm -ivh liblzma5-5.2.2-111.1.x86_64.rpm






--
※ 修改:·yanb 於 Jan  5 00:38:17 2018 修改本文·[FROM: 198.]
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 2601:281:8400:4]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996