Hi guys. I'm trying to build PHP with PDFlib support, but it's saying it can't find my pdflib.h file. I've heard that to install pdflib without the banner I have to build it in to php like this,
Here's my config:
'./configure' '--prefix=/var/www/php' '--with-apxs2=/var/www/bin/apxs' '--with-config-file-path=/intranet/php' '--with-mysql' '--with-sybase-ct=/opt/sybase' '--with-odbc' '--with-gd' '--with-ldap' '--with-ssl' '--with-pdf' '--with-jpeg-dir' '--enable-overload' '--enable-sockets' '--enable-ftp' '--enable-calendar' '--enable-gd-native-ttf' '--enable-sysvshm' '--enable-versioning' '--enable-wddx' '--enable-dbase' '--enable-exif' '--enable-dio' '--enable-filepro' '--enable-dbx' '--enable-track-vars' --with-unixODBC=/usr/src/unixODBC-2.2.3 --with-imap --with-kerberos --with-imap-ssl --with-ming -with-png-dir=/usr/local/lib --with-zlib --with-libtiff --with-tiff-dir=/usr/src/tiff-v3.5.7 --with-freetype-dir=/usr/src/freetype-2.1.2 --with-xpm-dir=/usr/X11R6/lib --with-pdflib=/usr/local/include
And here's the relevant output from ./configure:
checking for PDFlib support... yes
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
./configure: cd: yes: No such file or directory
checking for the location of libpng... yes
checking for png_create_info_struct in -lpng... yes
checking for the location of libtiff... yes
checking for TIFFOpen in -ltiff... yes
checking for the location of zlib... /usr
configure: error: pdflib.h not found! Check the path passed to --with-pdflib=<PATH>. PATH should be the install prefix directory.
Finally, here's what locate produces:
[root@tomahawk src]$ locate pdflib.h
/usr/local/include/pdflib.h
/usr/src/pdflib-4.0.3/pdflib/pdflib.h
/usr/src/pdflib-4.0.3/bind/cpp/pdflib.hpp
I've tried pointing it at all of these dirs and it doesn't want to work. Can someone please help!? Am I missing something obvious???
Much appreciation in advance to anyone that can help...!
-CB