Original link: http://blog.sina.com.cn/s/blog_684f1c2701013j26.html
Recently, the company realized a bean-like mesh Baidu Library reader function, need to use two software swftools and OpenOffice, two software win platform running normally, the company Linux server run encountered some trouble, Below I take the Linux platform installs the order to make the future reference also to share to everybody:
System: Linux centeros 5.6 X64 software download version optional
Here i download the software is the old version, the new version of the installation does not pass. System some old, we can choose to download according to their own system.
First, Swftools download:
Http://www.swftools.org/download.html
Download swftools-0.9.1.tar.gz
Second, OpenOffice Download:
Http://download.openoffice.org/all_rc.html#untested-full
Linux x86-64 RPM
Ooo_3.3.0_linux_x86-64_install-rpm-wjre_zh-cn.tar.gz
Third, Swftools installation:
1. Install the required libraries and components。 The machine has been installed before, the main installation is the following components.
yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel
2, download the compilation installation Swftools。
tar vxzf swftools-
0.9
.
1
.tar.gz
cd swftools-
0.9
.
1
./configure --prefix=/usr/local/swftools
make
make install
3, set the SWFTOOLS environment variable,Make pdf2swf an executable command
vim /etc/profile
export PATH=$PATH:/usr/local/swftools/bin/
4, install Xpdf language Pack. Downloadxpdf-chinese-simplified.tar.gzFile, unzip to/usr/local, edit the ADD-TO-XPDFRC file as follows:
vim /usr/local/xpdf-chinese-simplified/add-to-xpdfrc
Fontdir/usr/share/fonts/win
displaycidfonttt adobe-gb1/usr/share/fonts/win/simhei.ttf font File Download ...5, finally use the following conversion command test:
pdf2swf -s languagedir=/usr/local/xpdf-chinese-simplified -T 9 -s poly2bitmap -s zoom=150 -s flashversion=9 "/opt/123.pdf" -o "/opt/test/%.swf"
Four, OpenOffice installation: 1, unpack the installation package. # TAR-ZXVF Ooo_3.3.0_linux_x86-64_install-rpm-wjre_zh-cn.tar.gz
After decompression, you will get the ooo330_m20_native_packed-1_zh-cn.9567 directory.
2. (Enter RPMs directory) install all components of OpenOffice
# RPM-IVH openoffice*.rpm
3. (Enter Rpms/desktop-integration directory) Install OpenOffice Desktop Console desktop-integration
# CD Desktop-integration
# RPM-IVH openoffice.org3.2-redhat-menus-3.2-9472.noarch.rpm
Note: When installing this desktop configuration environment, you should choose a reasonable configuration package according to your own system.
4. Start OpenOffice
Cd/opt/openoffice.org3/program
#soffice-headless-accept= "SOCKET,HOST=LOCALHOST,PORT=8100:URP;"-nofirststartwizard &
Or:/opt/openoffice.org3/program/soffice-headless-accept= "SOCKET,HOST=127.0.0.1,PORT=8100;URP;"- Nofirststartwizard &
See document: http://tetop.blog.51cto.com/1883288/817509
Http://hi.baidu.com/nessus1/item/a714b5020a2c21d81ff046d0
Http://www.doc88.com/p-296361017943.html
Http://www.blogjava.net/hongjunli/archive/2010/05/27/322037.html ...
Install Swftools and OpenOffice under "Go" Linux