有趣的事

ubuntu安装PDFLib扩展

Brief installation notes. In the spite of the commercialization of libpdf library this is the way to use it in the lite mode.
System: Ubuntu 8.04 + php5.2

Step 1: PDFlib http://www.pdflib.com/
download PDFlib-Lite: http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/
extract: tar -xzvf PDFlib-Lite-X.X.XpX.tar.gz
compile: cd PDFlib-Lite-X.X.XpX && ./configure && make && make install

Step 2: Pecl for PDFlib http://pecl.php.net/package/pdflib
install:
install dependences: phpize (php5-dev package)
pecl install pdflib
path to pdflib installation? :/usr/local

如果这里选择路径失败,直接手动configure

cd /tmp/pear/cache/pdflib-2.1.8

./configure --with-pdflib=/usr/local && make && make install

Step 3: php.ini
extension=pdf.so

Step 4:
/etc/init.d/apache2 reload

That's it.

ubuntu pdflib pdf php 扩展

相关阅读