Installing PDFLib when compiling from source

From Sfiabwiki

Jump to: navigation, search

First, download and install PDFLib Lite from:

http://www.pdflib.com/products/pdflib/download-source.html

Now download the PHP source from:

http://www.php.net/downloads.php

configure php, here's the configure options I use

   ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-exif 
   --with-gd --with-zlib --enable-gd-native-ttf --with-freetype-dir=/usr 
   --with-jpeg-dir=/usr --with-imap-ssl --with-kerberos --with-pgsql 
   --enable-mbstring=all --enable-soap --with-curl --with-curl-wrappers 
   --with-pdflib=/usr/local

The most important one here is the last one, set it to the location that you install pdflib into... next BEFORE you build anything, run the following:

   pear download pdflib
   tar -zvxf pdflib-2.0.5.tgz
   mv pdflib-2.0.5/* ext/pdf

now you can

   make
   make install  

as normal.

Personal tools