php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58312 Unable to load libpdf.so
Submitted: 2008-08-15 00:12 UTC Modified: 2008-08-18 14:38 UTC
From: j at ie-internet dot com Assigned:
Status: Not a bug Package: pdflib (PECL)
PHP Version: 5.2.0 OS: Linux/Debian Etch
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 - 7 = ?
Subscribe to this entry?

 
 [2008-08-15 00:12 UTC] j at ie-internet dot com
Description:
------------
Apache configtest complains with an error:

PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libpdf.so'  in Unknown on line 0

Reproduce code:
---------------
linux:/ #pecl install pdflib
path to pdflib installation? : /usr/local

linux:/# vi /etc/php5/apache/conf.d/pdflib.ini

# configuration for PDFlib
extension=libpdf.so

:wq

linux:/# /etc/init.d/apache restart





Expected result:
----------------
Restarting apache 1.3 web server....

Actual result:
--------------
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libpdf.so'  in Unknown on line 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-18 14:38 UTC] rjs at pdflib dot com
Thank you for taking the time to write to us, but this is not
a bug.

pecl install pdflib creates a file pdf.so, so the entry for php.ini should be:

extension=pdf.so
 [2012-08-24 06:43 UTC] sumitalwayssmiling at gmail dot com
i run this command on linux
"pecl install pdflib"
but it is telling 
"No releases available for package "pear.php.net/pdflib"
install failed"

So i use this process
1) wget http://pecl.php.net/get/pdflib-2.1.5.tgz
2) tar -zxf pdflib-2.1.5.tgz 
3) cd pdflib-2.1.5
4) phpize
5) ./configure --with-pdflib=/usr/local/
6) make
7) make install
8) Add extension = "pdf.so" to the server php.ini & restart apache service.
When Restart apache it showing following error : 
"Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/pdf.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/pdf.so: cannot open shared object file: No such file or directory i"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC