Install xampp PHP PDF extension in Linux environment

Source: Internet
Author: User
Tags pdflib php pdf

Install PDF Extensions
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 Add extension= "pdf.so"
8. Restart 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 workaround 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 5th step:./configure--with-php-config=/opt/lampp/bin/php-config--libdir=/usr/local/lib64/

Install xampp PHP PDF extension in Linux environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.