[PHP] Problems compiling with PDF support

2001-05-01 Thread Bill Shupp

Hello,

I've been scouring the archives, but none of the solutions presented are
helping me...

I've got php 4.0.5 and am trying to compile support for pdflib-4.0.0.

Here's how I compiled pdflib:

./configure
make
make install

Looks successful, right?
ldconfig -v | grep libpdf
libpdf.so.1 = libpdf.so.1.1.0

ls -1 /usr/local/lib/libpdf*
/usr/local/lib/libpdf.a
/usr/local/lib/libpdf.la
/usr/local/lib/libpdf.so@
/usr/local/lib/libpdf.so.1@
/usr/local/lib/libpdf.so.1.1.0


And here's how I'm compiling PHP:

./configure  \
  --enable-versioning \
  --enable-track-vars \
  --with-mysql=/usr/local/mysql \
  --with-imap=/var/src/imap-4.5 \
  --with-curl=/var/src/curl-7.5.1 \
  --enable-gd-imgstrttf \
  --with-gd=../gd-1.8.3 \
  --with-ttf \
  --with-tiff-dir=/usr \
  --with-jpeg-dir=/usr \
  --with-zlib-dir=/usr \
  --with-png-dir=/usr/local \
  --with-pdflib=/usr/local/lib

(I'm now building CGI mode for testing so I don't have to keep restarting my
production web server)

The only mention of pdflib from ./configure is this:
checking whether to include PDFlib support... yes

I've also tried:
--with-pdflib=/var/src/libpdf-4.0.0 (src directory)
--with-pdflib=/usr/local/lib/libpdf.so (directly to the lib itself)
And cp ../pdflib-4.0.0/bind/php/ext/pdf/* ext/pdf/
... Same results.

php -i does NOT mention anything about PDF, and the pdfclock example fails
with:

Fatal error: Call to undefined function: pdf_new()

NOTE: I've been doing (make clean ; rm config.cache config.status) between
each ./configure.  I've also started with clean source a few times.

I've been working on this for a few days now, and am out of ideas.  I'd
appreciate any and all suggestions!

Thanks,

Bill Shupp


-- 
PHP General 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]




Re: [PHP] Problems compiling with PDF support

2001-05-01 Thread Yasuo Ohgaki

Bill Shupp [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

SNIP

   --with-png-dir=/usr/local \
   --with-pdflib=/usr/local/lib

 --with-pdflib=/usr/local/

if you have pdflib in /usr/local/lib

You have /usr/local/lib in ld.so.conf, right?
then you don't even have to specify directory.

 --with-pdflib

should work.
(I'm not sure if your pdflib version is supported by PHP, though)

Regards,
--
Yasuo Ohgaki


-- 
PHP General 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]




Re: [PHP] Problems compiling with PDF support

2001-05-01 Thread Bill Shupp

on 5/1/01 11:43 PM, Yasuo Ohgaki at [EMAIL PROTECTED] wrote:

 Bill Shupp [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,
 
 SNIP
 
 --with-png-dir=/usr/local \
 --with-pdflib=/usr/local/lib
 
 --with-pdflib=/usr/local/
 
 if you have pdflib in /usr/local/lib
 
 You have /usr/local/lib in ld.so.conf, right?
 then you don't even have to specify directory.
 
 --with-pdflib
 
 should work.
 (I'm not sure if your pdflib version is supported by PHP, though)
 
 Regards,
 --
 Yasuo Ohgaki

You were right.  I guess I never tried just --with-pdflib.  But that
brought many errors during make.

To make pdflib-4.0.0 work with php 4.0.5, I had to copy the php files from
the pdflib source as described here:

http://marc.theaimsgroup.com/?l=php-installm=98818471625096w=2

Thanks so much!

Bill Shupp


-- 
PHP General 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]