码迷,mamicode.com
首页 > Web开发 > 详细

centos7 安装swftools Apache_OpenOffice

时间:2018-07-05 15:54:56      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:src   share   解决   建立   copy   cal   inux   viewer   object   

centos7
yum -y install wget
wget http://www.swftools.org/swftools-0.9.2.tar.gz
tar -xf swftools-0.9.2.tar.gz
./configure --prefix=/data/server/seftools

ERROR:
You need zlib to compile swftools

yum -y install zlib zlib-devel
make
make install

rm: invalid option -- o
Try rm --help for more information.
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/tools/swftools-0.9.2/swfsmake: *** [install] Error 2

1.find ./ |xargs grep -r -i "default_viewer"

src/pdf2swf.1:    The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
src/pdf2swf.c:    sprintf(buf, "%s/default_viewer.swf", SWFDIR);
swfs/Makefile.in:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
swfs/Makefile.in:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
swfs/Makefile.in:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
swfs/Makefile:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
swfs/Makefile:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
swfs/Makefile:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
[root@localhost swftools-0.9.2]# find ./ |xargs grep -r -i "default_viewer"
./src/pdf2swf.1:    The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
./src/pdf2swf.c:    sprintf(buf, "%s/default_viewer.swf", SWFDIR);
./swfs/Makefile.in:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
./src/pdf2swf.1:    The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
./src/pdf2swf.c:    sprintf(buf, "%s/default_viewer.swf", SWFDIR);
./src/pdf2swf.1:    The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
./src/pdf2swf.c:    sprintf(buf, "%s/default_viewer.swf", SWFDIR);
./swfs/Makefile.in:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile.in:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
./swfs/Makefile:    $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf


vim swfs/Makefile.in
vim swfs/Makefile 
将 -o -L去掉!
再make install 
pdf2swf?


注意:支持中文
1、将xpdf-chinese-simplified.tar.gz解压到/usr/local/xpdf-chinese-simplified
2、在/usr/share/fonts下建立win目录,拷入字体文件Gbsn00lp.ttf、gkai00mp.ttf。
3、cd /usr/local/xpdf-chinese-simplified
4、vim add-to-xpdfrc
5、编辑在末行加入
fontDir /usr/share/fonts/win
displayCIDFontTT Adobe-GB1 /usr/share/fonts/win/gkai00mp.ttf

安装Apache_OpenOffice
tar??-zxvf??Apache_OpenOffice_4.0.1_Linux_x86_install-rpm_zh-CN.tar.gz
cd zh-CN/RPMS
rpm -ivh *.rpm
启动服务:
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
报错
error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
./jdk-6u31-linux-x64-rpm.bin
解决方法
yum install libXext.x86_64
再次启动
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
netstat -ntlp|grep 8100

注意:支持中文多种字体
1、默认在/opt/openoffice4/share/fonts/truetype/,支持中文的字体不多,直接把windows下的字体全部copy进去(windows字体库在C:\Windows\Fonts\)
2、ps -ef|grep openoffice 
3、kill -9 进程Id4、再次启动服务

 

centos7 安装swftools Apache_OpenOffice

标签:src   share   解决   建立   copy   cal   inux   viewer   object   

原文地址:https://www.cnblogs.com/Liang-jc/p/9268396.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!