ubuntu安装PDFLib扩展
2011-02-23 阅读 92
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
download PDFlib-Lite:
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
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 扩展
更新于 2023年03月28日