Following is how I installed pdflib4.0
Unzip it
del php-4.0.4pl1/ext/pdf/*
cd to pdflib-4.0.0/bind/php/ext/pdf
copy * php-4.0.4pl1/ext/pdf
cd to pdflib-4.0.0
configure --enable-php
make
make install
A few errors occurred when I ran make, but it installed ok.
Link the installed libraries
ln -s /usr/local/lib/libpdf* /usr/lib
Then build php adding just --with-pdflib to your other options.
-Stewart
-----Original Message-----
From: Andrew Apold [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 14:56
To: [EMAIL PROTECTED]
Subject: [PHP-INST] --with-pdflib... stops on show_boxed
I've seen in the annotations and other places at least a dozen other
people have
this problem.... and about a dozen different solutions from using links,
using
a new pdf.c, omitting png support, or even installing an rpm... none of
them
seem to help my situation.
I'm using php 4.04pl1., the 11 january (latest AFAIK).
Suse linux distribution, 2.4 kernal
pdflib 4.0.0.
Someone suggested using the binary on pdflib's site, tried that,
also no go. Weird, though, the pdflib-4.0.0-Linux.tar.gz file
they have as a binary contains files who go to a pdflib-3.0.0
directory. Either way, that didn't help.
Every time configure pdflib with
./configure --enable-shared --enable-shared-pdflib --enable-php
when I tried the binary, that version didn't seem to have an
--enable-php
configure option. Regardless, it is supposed to be enabled by default.
As far as I can tellthe shared stuff goes to /usr/local/lib, which is
where php looks for it by default.
I configure, make, make test, as per instructions. Tried a make install
too to ee fi that would help.
Run ldconfig, as various accounts of this error claim this will solve
it.
then in php directory, using the new pdf.c from cvs places in
.../ext/pdf,
do a ./configure --with-mysql --with-apxs --with-pdflib
Samne response every time:
checking whether to include Pdflib 3.x support... yes
checking for PDF_show_boxed in -lpdf... (cached) no
earlier ones didn't have the cached I think. hmmm. maybe it isn't
rechecking with all my latest attempts?
configure: error: pdflib extension requires at least pdflib 3.x. You
may also need libtiff and libjpeg. If so
and it cuts off right there.
I had this thing working under php3 and an older pdflib about a month or
two ago (server rebuilt since then).
Back then I did it without jpeg or tiff libraries, too. The stuff I'm
doing doesn't require them.
Regardless, I have both libtiff and libjpeg installed, following links
to them from pdflib.com's website.
Have zlib installed.
I'm at wits end with this one, been over a week I've not been able to
get it working. Half a mind to
try clibpdf, though it would mean altering all my php files...
oh, if I try --with-pdflib=/usr/local/lib, it compiles through without
error, but
looking back on the log it says:
checking whether to include Pdflib 3.x support... no
so it compiles, but is no use, no support.
any help would be greatly appreciated.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]