Install swftools on CentOS 5.6
Doing a lot of web development I always need to find new ways to do things. A client recently needed a Flash PDF reader so I had to install swftools. Unfortunately on CentOS 5.6 I could not get the application compiled even though I had all the dependencies.
Well now I found an easy solution to install the package on CentOS 5.6. Follow the steps below on the command line as root:
Install all the dependencies:
yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel
Install the repository:
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Now simple run:
yum install swftools
And it should download and install swftools and lame also if it is not installed already. Now to check if everything was installed properly run the following command.
This will show you the switches for the pdf2swf command. For the documentation for swftools go to their wiki page. swftools wiki