centos7 安装swftools Apache_OpenOffice

Posted 想翻身的猫

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 安装swftools Apache_OpenOffice相关的知识,希望对你有一定的参考价值。

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
[[email protected] 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:WindowsFonts)
2、ps -ef|grep openoffice 
3、kill -9 进程Id4、再次启动服务

 

以上是关于centos7 安装swftools Apache_OpenOffice的主要内容,如果未能解决你的问题,请参考以下文章

(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错

Mac编译安装swfTools

java实现附件预览(openoffice+swftools+flexpaper)

Centos7.2下安装与配置apache

centos7安装apache

centos7安装apache