I compile pdflib 3.02 on linux redhat 6.0 and work bu this option "./configure --enabled-shared-pdflib --enable-cxx --enable-static --enable-shared --with-tifflib=/usr/lib --with-tiffauxlib=-ljpeg"
"make" then "make test" and "make install"
Edit /etc/ld.so.conf and include the line "/usr/local/lib"
"ln -s /usr/lib/libtiff.so.3.5.4 /usr/lib/libtiff.so"
"ln -s /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so"
"ldconfig"
Recompile PHP with "--with-pdflib"
If that doesn't work, make sure to check the last few lines of config.log ("tail -n 25 config.log") and look for errors. Worked finally for me with PHP 4.0.2.
David Lomas wrote:
I've scanned the archives and found some
stuff that looks like some ot the compile
problems I've been having.
There are NO PATCHES at the pdflib site, so
don't point me there!
I'm using Solaris 2.6 and I have a good
DSO version of PHP 4.0.4 running with MYSQL
against Apache 1.3.12.
But when I try to compile pdflib into PHP I
get most of the documented errors.
I'm unsure whether ALL the required libraries
( libtiff, libz, libpng, libpcre, libjpeg )
must be shared - the only one that isn't
is libpdf even though I've used --enable
-shared-libpdf, --enable-shared.
Any help will be welcomed.