centos安装liberoffice及swftool的问题集

0001.在linux上安装swftool

wget -cd http://www.swftools.org/swftools-2013-04-09-1007.tar.gz
tar -zxvf swftools-2013-04-09-1007.tar.gz;chmod 755 swftools-2013-04-09-1007
cd swftools-2013-04-09-1007
./configure --build=x86_64

[root@cqnagzc-portal swftools-2013-04-09-1007]# ./configure 
checking build system type... Invalid configuration `x86_64-unknown-linux-': machine `x86_64-unknown-linux' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed

解决办法:

yum install -y gcc

The following headers/libraries are missing:  ungif gif_lib.h

Disabling gif2swf tool...

解决办法:

yum -y install giflib-devel

 

The following headers/libraries are missing: jpeglib t1lib ungif jpeglib.h freetype t1lib.h gif_lib.h

Disabling pdf2swf tool...

Disabling jpeg2swf tool...

Disabling gif2swf tool...

解决办法:

yum install giflib-devel libjpeg-devel freetype-devel t1lib-devel

###以上没有其它错误了可以make了
make 
make install  
make clean 
make distclean 
whereis pdf2swf 
    pdf2swf: /usr/local/bin/pdf2swf 
###能whereis或which出来pdf2swf即成功

安装liberoffice:

##以下是安装openOffice的,liberoffice没记录包名,差不多一样的
tar -zxvf  OOo_3.2.1_Linux_x86_install-rpm-wJRE_zh-CN.tar.gz 
cd OOO320_m18_native_packed-1_zh-CN.9502/RPMS/ 
rpm -ivh  *.rpm 
##执行完后配置$OPENOFFICE_PATH路径,就不用说了,再执行下面命令,看有无抱错。
$OPENOFFICE_PATH/program/soffice.bin -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
##没有,抱错,则可以,后台执行以下命令做为服务:
nohup $OPENOFFICE_PATH/program/soffice.bin --headless -accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard >/dev/null 2>&1 &

以下为安装liberoffice出错的问题:

 

/opt/libreoffice4.4/program/soffice.bin: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory

yum -y install cups-libs.x86_64



/opt/libreoffice5.0/program/soffice.bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

yum instal -y glx-utils.x86_64

包名可能不用,请用yun list <*包名*> 查找相应包全名后安装 

你可能感兴趣的:(docx,pdf,OpenOffice,doc,SwfTool,pdfjs,flexpaer,liberoffice)