Home>Article>Backend Development> How to install XAMPP PHP PDF extension in Linux environment

How to install XAMPP PHP PDF extension in Linux environment

一个新手
一个新手 Original
2017-09-28 10:29:19 2050browse

Install pdf extension

1. wget http://pecl.php.net/get/pdflib-4.1.2.tgz 2. tar zxvf pdflib-4.1.2.tgz 3. cd pdflib-4.1.2.tgz 4. /opt/lampp/bin/phpize 5. ./configure --with-php-config=/opt/lampp/bin/php-config 6. make && make install 7. vim /opt/lampp/etc/php.ini 添加extension="pdf.so" 8. 重启XAMPP:/opt/lampp/xampp restart

If the error message is: Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts -20131226/pdf.so' - libpdf.so.6: cannot open shared object file: No such file or directory in Unknown on line 0

The solution is: cp /usr/local/lib/libpdf. so.6 /usr/local/lib64/
Indicates that the compiled 64-bit library is not installed in the /usr/local/lib64/ directory

or modify the first 5 steps: ./configure --with-php-config=/opt/lampp/bin/php-config --libdir=/usr/local/lib64/

The above is the detailed content of How to install XAMPP PHP PDF extension in Linux environment. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:First introduction to PHP Next article:First introduction to PHP