#!/bin/sh# Download the PDFLib Lite Linux source from here first:# http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/# put the download in the same location as this script# NOTE: you will be prompted by the pecl installation at the end# of the process for a path - you'll need to enter /usr/local/ here## Author: jbw# DateCreated: Mon, 22 Mar 2010# We need root privileges ..if["$USER" !="root"]; thenchmod +x "$0" gksudo "$0"exitfidpkg -l | grep -q build-essential ||\ apt-get install build-essential
tar zxvf PDFlib-Lite-7*.tar.gz &&\cd PDFlib-Lite-7*/ &&\ ./configure &&\ make &&\ make install
dpkg -l | grep -q php-pear ||\ apt-get install php-pear
dpkg -l | grep -q php5-dev ||\ apt-get install php5-dev
pecl install pdflib
If you don't plan on using the dl() method to load this module dynamically then you may need to modify the php configuration so it autoloads the pdf.so extension.