swftools,在ubuntu linux下的安装
来源:互联网 发布:淘宝店被关可以重开 编辑:程序博客网 时间:2024/04/29 21:51
原文章地址:
http://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/
Hello,
I’ve been using swftools, mainly pdf2swf functionality, for a while now and installation always sucked. Google usually provides good results for common problems, but lack of a step-by-step installation guide is lacking.
Main site, http://swftools.org, has pretty good wiki for documentation and a tidy installation walkthrough. Unfortunately for me I had a ton of problems getting pdf2swf to work properly on Amazon’s AWS Ubuntu server (ami-5059be39 – ubuntu-intrepid), but fortunately for you I finally got it working and also put together this guide, which will hopefully save you some time.
Note: swftools version that comes default with aptitude would not work for me hence the need to compile from source.
Note2: this guide assumes the distro is up to date and all system libraries have been installed fromInstalling RoR on Ubuntu post
Get necessary libraries and extract
- wget http://swftools.org/swftools-0.9.0.tar.gz
- tar -zvxf swftools-0.9.0.tar.gz
- wget http://www.ijg.org/files/jpegsrc.v7.tar.gz
- tar -zvxf jpegsrc.v7.tar.gz
- wget http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz
- tar -zvxf freetype-2.3.12.tar.gz
Note: v8 produced errors in swftools install so I grabbed v7, which worked wonderfully.
Now order of install. First we install jpeg:
- cd jpegsrc.v7
- sudo ./configure
- sudo make
- sudo make install
Freetype is a little trickier. For install you have to reset cache, set flags, run ranlib (not sure why but it wouldn’t work without for me, if you know I’d love an explanation)
- cd freetype-2.3.12
- rm -f config.cache
- sudo ranlib /usr/local/lib/libjpeg.a
- sudo ldconfig /usr/local/lib
- sudo LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
- sudo make
- sudo make install
If you want to be able to convert pdf files into text you have to install xpdf. Fortunately aptitude does provide us with the right libraries this time.
And now for the final step:
- cd swftools-0.9.0
- sudo LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
- sudo make
- sudo make install
Big thanks to swftools for making this possible.
Best,
Mikhail
- swftools,在ubuntu linux下的安装
- swftools linux 下的安装
- Linux下安装swftools
- swftools linux下安装
- linux 下 openOffice swftools 的安装
- ubuntu 11.10下安装swftools
- Linux下 swftools openoffice3安装
- swftools在linux环境下的安装与所遇问题的解决方法(总结精华)
- linux下安装swftools和openOffice
- linux下安装swftools和openOffice
- linux下安装swftools和openOffice
- linux下安装swftools和openOffice
- linux下安装swftools和openOffice
- linux下安装swftools和openOffice
- Linux下openoffice+swftools安装教程
- Ubuntu 安装swftools
- Ubuntu安装swftools
- Ubuntu安装swftools
- 如何在Qt中使用自定义数据类型 (zz)
- 域问题导致配置用户不能链接数据库
- VirtualBox开启显卡3D加速
- 高清步入网络,数字改变生活
- 漂亮的淘宝客单页模版,简单大气
- swftools,在ubuntu linux下的安装
- Oracl基本操作SQL
- WTL中的窗口消息传递
- 文件Cache处理
- c/c++堆栈
- python 的os模块下chmod方法简单介绍
- Andriod的联通性---Wi-Fi Direct(一)
- 关于MetaAPI问题CSDN给的邮件回复
- Oracle常用函数