Re: Problem to get PDFLib working
| From: | Dmitry Demczuk | Date: | Sat, 04 Jan 2003 20:11:47 +0000 |
| Subject: | Re: Problem to get PDFLib working | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-9551@lists.php.net to get a copy of this message | ||
Hi Rasmus,
I did not build php with it. I downloaded PDFLib from pdflib.com and
followed their instructions ("Loadable Module (DSO)" is the recommended way
for using PDFlib with PHP instead of rebuilding PHP with --with-pdflib,
accrodig to their manual).
Then I copied the file libpdf_php.* from the directory
"bind/php/<phpversion>" of the PDFlib binary distribution to the directory
which is specified in the "extension_dir" line in php.ini
(/usr/include/php) and inserted one line in php.ini:
extension = libpdf_php.so.
When I restart Apache2, I get this in the error log:
PHP Warning: Unknown(): Unable to load dynamic library
/usr/include/php/libpdf_php.so - /usr/include/php/libpdf_php.so:
zif_warn_not_available in Unknown on line 0.
I made a check in Google for zif_warn_not_available but could not find
anything relevant.
Cheers,
Dmitry
Rasmus Lerdorf wrote:
>> The module (libpdf_php.so) is in /usr/include/php. It's the folder
>> specified in the extension_dir variable of the php.ini file.In the same
>> file, I also added extension=libpdf_php.so
>
> Where did you get this libpdf_php.so file? When building it from PHP
> using --with-pdf=shared it gets called pdf.so, so I suspect you have a
> bogus .so
>
> -Rasmus
--
Dmitry