Re: PHP doesn't find PDFLib functions

From: Date: Wed, 01 Aug 2001 15:34:07 +0000
Subject: Re: PHP doesn't find PDFLib functions
Groups: php.install 
Request: Send a blank email to php-install+get-3784@lists.php.net to get a copy of this message
It took me quite awhile to get PDFLIB 4.0.1 to compile with PHP, and here are the config options that finally worked for me (on HPUX). PDFLIB: ./configure --enable-shared-pdflib --enable-cxx --with-tifflib=/usr/lib --with-zlib=no --with-pnglib=no PHP (DSO build): ./configure --with-apxs=/path/to/apache/bin/apxs --with-mysql=no --with-pdflib=/usr/local --enable-shared=pdflib --enable-libgcc --with-zlib=/opt/zlib --with-zlib-dir=/opt/zlib NOTE - Even though the PHP compile might say that PDFLIB is being included, if you don't have see the following lines during compile, PDFLIB will NOT be included: #################################### checking whether to include PDFlib support... yes checking for PDF_show_boxed in -lpdf... yes ##################################### Good Luck, Jim Thome >>> "Christophe Cinquantun" <chris51@guignol.com> 08/01 4:49 AM >>> >>> I don't succeed in building PHP 4.0.6 with PDFLib 4.0.1 I've installed the PDFLIB 4.01 source in <pdflib-dir>, run ./configure, make and make install. Then, as specified in <pdflib-dir>/bind/php/readme.txt, I've copied <pdflib-dir>/bind/php/ext/pdf/* in <php-dir>/ext/pdf and build php with ./configure --with-pdflib=/usr/local, make and make install I got no errors, but PHP doesn't recognize any PDF functions (Call to undefined function: pdf_new()) I tried to change the --with-pdflib value, with <pdflib-dir>/bind/c or junk directories, it doesn't change anything (No error, but no PDF functions) php -m doesn't say anything about pdf. I didn't notice anything important in config.log What can be wrong, How to know what pdflib library file php is looking for ? My php configure line is ./configure --with-pdflib=/usr/local --enable-safe-mode=yes --enable-discard -path=yes -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#3784) next »