Re: still trying PDFlib
| From: | Matt Grover | Date: | Wed, 20 Sep 2000 19:02:39 +0000 |
| Subject: | Re: still trying PDFlib | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-2482@lists.php.net to get a copy of this message | ||
I followed these exact steps today, I've seen them posted several times by
Rasmus here on php.install.
Everything builds fine but now apache won't start:
Syntax error on line 209 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libpdf.so.0:
cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl graceful: httpd could not be started
I'm on RedHat 6.2, using apache-1.3.12, just downloaded the latest snapshot
of PHP4.
I added /usr/local/lib to my /etc/ld.so.conf file before compiling anything.
For pdflib-3.01 I compiled with:
./configure --enable-shared-pdflib
make
make test (looked fine, generated the testpdf.pdf file)
make install
For PHP4 I compiled with:
./configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-versioning \
--enable-track-vars \
--with-gd=../gd-1.8.3 \
--with-pdflib=/usr/local
make
make install
Here's my ls -l /usr/local/lib:
total 1712
-rw-r--r-- 1 root root 67528 Sep 14 09:34 libdes.a
-rw-r--r-- 1 root root 187098 Sep 18 04:39 libgd.a
-rw-r--r-- 1 root root 1029202 Sep 20 2000 libpdf.a
-rw-r--r-- 1 root root 668 Sep 20 2000 libpdf.la
lrwxrwxrwx 1 root root 15 Sep 20 2000 libpdf.so ->
libpdf.so.0.0.1
lrwxrwxrwx 1 root root 15 Sep 20 2000 libpdf.so.0 ->
libpdf.so.0.0.1
-rw-r--r-- 1 root root 395467 Sep 20 2000 libpdf.so.0.0.1
drwxrwxr-x 11 root root 4096 Sep 20 10:27 php
-rw-rw-r-- 1 root root 22148 Sep 18 08:15 php.ini
-rw-rw-r-- 1 root root 12812 Sep 18 08:16 php3.ini
I've also got PHP3 installed as a DSO, any tips on how exactly to get pdflib
to run in PHP3 as well? Is it even possible? Would an older version (pre
2.0?) of pdflib have to be statically linked into PHP3?
Thanks!
-Matt
Rasmus Lerdorf wrote:
> Grab a snapshot release of PHP from http://snaps.php.net
>
> Download pdflib-3.0.1 and compile it using:
>
> ./configure --enable-shared-pdflib
> make
> make install
>
> Then configure PHP using: --with-pdflib=/usr/local
>
> -Rasmus