wps改名为kingsoft-office
...
http://blog.sina.com.cn/s/blog_6717844001019dnp.html
1. 改用多架构
我现有架构是amd64, 我需要增加 i386架构
我现有架构是amd64, 我需要增加 i386架构
# dpkg --add-architecture i386
# apt-get update
2. dpkg -i ./kingsoft-office_9.1.0.4111~a11p2_i386.deb
系统安装时提示:
dpkg: dependency problems prevent configuration of kingsoft-office:
kingsoft-office 依赖于 libc6 (>= 2.12).
kingsoft-office 依赖于 libstdc++6 (>= 4.5).
kingsoft-office 依赖于 libfreetype6 (>= 2.4).
kingsoft-office 依赖于 libglu1-mesa.
kingsoft-office 依赖于 libcups2.
# aptitude search libc6
根据结果,找到 i386版本的 libc6
# aptitude install libc6:i386
用上述类似的方法安装 libstdc++, libfreetype6 libglu1-mesa libcups2 的i386版
# aptitude search libstdc++
注意:用 aptitude search libstdc++6 (找不到东西)
# aptitude install libstdc++6:i386
# aptitude search libfreetype6
# aptitude install libfreetype6:i386
# aptitude search libglu1-mesa
# aptitude install libglu1-mesa:i386
# aptitude search libcups2
# aptitude install libcups2:i386
# dpkg -i ./kingsoft-office_9.1.0.4111~a11p2_i386.deb
# et
显示少了 libgthread.so
# aptitude install libglib2.0-0:i386
# 继续运行et,从错误提示中安装余下的包
# aptitude install libpng12-0:i386 libsm6:i386 libxrender1:i386 libfontconfig1:i386
et 运行成功,但提示字体缺失:symbol, wingdings 2 wingdings 3
# cp /media/本地磁盘/WINDOWS/Fonts/* ~/.fonts
okay!
64bit系统安装办法
Linux 64 bit用户可以通过安装32 bit的库来获得支持。
Ubuntu 用户:
sudo apt-get install ia32-libs
Debian 用户:
1.安装必要组件
sudo apt-get install ia32-libs ia32-libs-gtk sudo apt-get install libfreetype6
2.经过以上步骤,Debian6(squeeze)尚不可用,需要下载libstdc++6的testing或sid版,解包到某个目录(比如/opt/libstdc)
PS:也可以切换到testing源/sid源,升级gcc(不推荐,升级后有些依赖问题)
3.修改wps和wpp脚本/usr/bin/wpp和/usr/bin/wps,添加libstdc++6和gtk2的位置,gtk2应当使用/usr/lib32/gtk-2.0
4.其他方法之一: 经过实际测试,Debian7(Wheezy)64bit 可以安装和启动Wps4Linux, 对于Debian6(squeeze)的用户可以考虑添加testing或者Wheezy的软件源, 然后运行“sudo apt-get dist-upgrade”升级一下系统。 软件源举例:
deb http://mirrors.163.com/debian wheezy main non-free contrib deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free deb-src http://mirrors.163.com/debian wheezy main non-free contrib deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
如果遇到错误:
ia32-libs : Depends: ia32-libs-i386 but it is not installable
调用:
dpkg --add-architecture i386 apt-get update
RPM 系发行版:
无须介意。rpm系的'.so' 是动态查找的,32位的 '.so' 自动查找32位的依赖。