-
LINUX下安装swftools
普通类 -
- 支持
- 批判
- 提问
- 解释
- 补充
- 删除
-
-
linux下安装swftools
1.安装依赖包
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpnglibpng-develfreetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibcglibc-develglib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curlcurl-devele2fsprogs e2fsprogs-devel krb5-server krb5-devel libidn libidn-developenldapopenldap-devel nss_ldap openldap-clients openldap-server
如果提示Disabling gif2swf tool错误,那就还要安装:yum install giflib-devel
2.下载解压swftools
下载地址:http://www.swftools.org/download.html
tar -vxzf swftools-0.9.1.tar.gz3.安装
./configure --prefix=/usr/local/swftools
make
make install
如果出现一些错误,可以试试make clean,重新编译一次
4.将swftools配置成可运行命令
vim /etc/profile
最后一行后插入一行 export PATH=\$PATH:/usr/local/swftools/bin/
执行:source /etc/profile 更新新环境变量
执行:ppt2swf 测试是否正常
5、安装xpdf语言包。下载xpdf-chinese-simplified.tar.gz文件,解压到/usr/share/xpdf下,编辑add-to-xpdfrc文件,如下:
tar zxvf xpdf-chinese-simplified.tar.gz
unzip font.zip
mv Gbsn00lp.ttf gkai00mp.ttf xpdf-chinese-simplified/CMap/
cd /usr/share/xpdf/xpdf-chinese-simplified
vi add-to-xpdfrc
内容如下:
cidToUnicode Adobe-GB1 /usr/share/xpdf/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap ISO-2022-CN /usr/share/xpdf/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap EUC-CN /usr/share/xpdf/xpdf-chinese-simplified/EUC-CN.unicodeMap
unicodeMap GBK /usr/share/xpdf/xpdf-chinese-simplified/GBK.unicodeMap
cMapDir Adobe-GB1 /usr/share/xpdf/xpdf-chinese-simplified/CMap
toUnicodeDir /usr/share/xpdf/xpdf-chinese-simplified/CMap
displayCIDFontTT Adobe-GB1 /usr/share/xpdf/xpdf-chinese-simplified/CMap/gkai00mp.ttf
保存后退出
-
-
- 标签:
- path
- 一行
- install
- usr
- bin
- 安装
- linux
- swftools
- 下载
- LINUX下安装swftools
- local
-
学习元评论 (0条)
聪明如你,不妨在这 发表你的看法与心得 ~