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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j at ie-internet dot com
New email:
PHP Version: OS:

 

 [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-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 20:01:23 2020 UTC