Entry
What are the steps for compiling pdflib with PHP?
Sep 21st, 1999 21:11
Nathan Wallace, Luca Perugini
this is my recipe:
1) untar pdflib-2.01.tar.gz
./configure
make
make install
2) set a symlink
ln -s /usr/local/lib/libpdf2.01.so /usr/local/lib/libpdf.so
You need to do this 'cause the PHP configure check for pdflib with
a little C-program compiling it and linking with library named
libpdf (!)
2.bis) ldconfig
this update the info about dynamic library on you system
(think about the magic phrase "Reboot Windows " ) ;-)
Linux it's COOL !!!!!
3) go to cvs.php.net and checkout the source tree
You can find How-To on http://cvs.php.net
4) configure your php:
this is my configure script:
./configure --with-apxs=/usr/bin/apxs --with-ldap --with-mysql \
--with-pgsql=/usr --with-dbase \
--with-pdflib=/usr/local --with-zlib \
--with-jpeg-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
--with-config-file-path=/etc/httpd \
--with-system-regex=yes \
--enable-debug=no
make
Stop your Apache server with apachectl stop (don't forget it!)
make install
apachectl start
and
.......... have happy time hacking with pdflib/php ! ;->
Some about:
- with pdflib 2.01 there's a lot of change on API
- php-3.0.12 is patched for pdflib 2.0
- some strange happens installing pdflib (name mismatch..)