debian amd64下安装kingsoft wps office
手工安装 dpkg -i xxx.deb方式不会自动安装依赖,比较麻烦,因此考虑使用自已建本地仓库方式[*] http://community.wps.cn/download/ 下载
axel http://wdl.cache.ijinshan.com/wps/download/Linux/unstable/kingsoft-office_9.1.0.4127~a11p3_i386.deb
2. 安装reprepro
aptitude install reprepro
mkdir/srv/debian/reprepro
cd /srv/debian/reprepro
mkdir conf
建立distributions文件
内容为
#参考 /usr/share/doc/reprepro/examples/di.example/distributions
#参考 /usr/share/doc/reprepro/examples/di.example/updates
Origin: Debian
Label: Debian
Suite: testing
Codename: testing
Architectures: i386 amd64 source
Components: main contrib non-free
Version: 7.0
Description: testing 7.0 Repository
#------------------------------------------------
#------------------------------------------------
Origin: Debian sid
Label: Debian unstable
Suite: unstable
Codename: sid
Version: 7.0
Architectures: i386 amd64 source
Components: main contrib non-free
Description: unstable 7.0 Repository 再建个文件options
verbose
ask-passphrase
basedir .
conf/incoming文件,暂时可不用
Name: testing-upload
IncomingDir: /home/lvdata/develop/class_by_os/linux/debian/reprepro/incoming
TempDir: /home/lvdata/develop/class_by_os/linux/debian/reprepro/temp_dir
#Allow: experimental>lucid-experimental stable>lucid
Allow: testing>testing stable>wheezy unstable>sid
Default: testing
Multiple: Yes
Permit: older_version unused_files
Cleanup: on_deny on_error unused_files 3 添加下载好的deb
reprepro -b 你的仓库目录位置 includedeb testing /tmp//wps/kingsoft-office_9.1.0.4127~a11p3_i386.deb 默认会添加到main中,可通过-C 来指定你的分类
-C, --component <component>: Add,list or delete only in component.
可以通过
reprepro -b 你的仓库目录位置 list testing 列出仓库中的包 , 可使用-T来专门列出你想要的类型
4.添加仓库地址到/etc/apt/sources.list
deb file:/srv/debian/reprepro testing main
5.dpkg --add-architecture i386
6.aptitude update更新
7. aptitude install kingsoft-office:i386 注: 使用package:arch 格式
8.查看运行缺少库
命令行下运行$ wps
/opt/kingsoft/wps-office/office6/wps: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
通过 apt-file 查找库apt-file search libgthread-2.0.so.0
libglib2.0-0: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
libglib2.0-0: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0.3600.4
libglib2.0-0-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgthread-2.0
.so.0.3600.4
为了省麻烦,直接靠ldd来查找
ldd /opt/kingsoft/wps-office/office6/wps | grep found
libSM.so.6 => not found
libICE.so.6 => not found
libXrender.so.1 => not found
libfontconfig.so.1 => not found
libfontconfig.so.1 => not found
libXrender.so.1 => not found
libfontconfig.so.1 => not found
查找到所有缺少的包后,一次性安装
sudo aptitude install libpng12-0:i386 libsm6:i386 libice6:i386 libfontconfig1:i386 libxrender1:i386 libglib2.0-0:i386
此时再运行wps就可以执行了,下一步就是安装缺少的字体,因为字体版权原因,需自行处理
拷贝 symbol.ttf webdings.ttf wingding.ttf wingdng2.ttf wingdng3.ttf monotypesorts.ttf MTExtra.ttf到 /usr/share/fonts/wps/目录下
sudo mkfontscale
sudo mkfontdir
sudo fc-cache 字体已通过自己打包成deb处理
经过上面的处理发现,这个deb打包依赖说明还缺少了一些库的描述
页:
[1]