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

How to install XAMPP PHP PDF extension in Linux environment

一个新手
Release: 2023-03-16 12:38:01
Original
2206 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template