PDF lib error on linux server. Using pecl install pdflib

I try to install pdflib on my server and get an error:

configure: error: pdflib.h not found! Check the path passed to --with-pdflib=<PATH>. PATH should be the install prefix directory. ERROR: /root/tmp/pear/pdflib/configure --with-pdflib=/usr/local' failed

The terminal includes the following:

pecl install pdflib

path to pdflib installation? :

/ Usr / local

+4
source share
2 answers

I decided that he decided: The last one was downloaded http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz

 # cd /home/xxx/Downloads/ # wget http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz 

Un-tar-gzip it

 # tar xzf PDFlib-Lite-7.0.5p3.tar.gz # cd PDFlib-Lite-7.0.5p3 

See if and where it contains pdflib.h

 # find . -name 'pdflib.h' ./PDFlib-Lite-7.0.5p3/libs/pdflib/pdflib.h 

Install via pecl

 # pecl install pdflib 

If it asks for the path, enter the same full path / home / xxx / Downloads / pdf / PDFlib -Lite-7.0.5p3 / libs / pdflib See From the installation messages, if and where he added the pdf.so file (in the directory php extensions this name may be different, but the pdf.so file must exist):

 # ls -la /usr/lib/php5/20090626 

edit pdf.ini

 # nano /etc/php5/apache2/php.ini 

add at the end

 extension=pdf.so 

(You might want to add it at the command line php conf / etc / php5 / cli / php.ini)

reload apache

 # service apache2 reload 

See if this extension is displayed

  • for Apache, see the output of the phpinfo () function if there is anything new regarding PDFlib PDFlib PDFlib support PDFlib GmbH Binary-Version 7.0.5p3 PECL version 3.0.0 Revision $ Revision: 1.80.2.2 $

  • for command line

enter at the command prompt

 # php -i |grep PDF PDFlib PDFlib Support => enabled PDFlib GmbH Binary-Version => 7.0.5p3 
+5
source

any workaround for https://www.pdflib.com/download/pdflib-family/pdflib-9/ .

Via

 pecl install pdflib 

gives me the following error:

 configure: error: pdflib.h not found! Check the path passed to --with-pdflib=<PATH>. PATH should be the install prefix directory. 
0
source

Source: https://habr.com/ru/post/1479081/


All Articles