installing PDFLib to PHP 5.3 on Mac OSX 10.6

2.4k views Asked by At

I'm trying to install PDFLib (http://www.pdflib.com/) into Apache/Joomla running on my Mac OSX 10.6 pc. The procedure I've followed is:

  1. copy /PDFlib-7.0.5/bind/php5/php-530/libpdf_php.so to: /usr/lib/php/extensions/libpdf_php.so
  2. add to php.ini: extension=/usr/lib/php/extensions/libpdf_php.so
  3. change permissions on the executable: chmod a+rwx libpdf_php.so
  4. restart Web Sharing in System Preferences

when I look at php_info() I don't see a section for PDFLib, and I cant see any errors in Console. Any clues what else to check?

2

There are 2 answers

0
Black On
0
Tieme On

Try installing php and pdflib with homebrew:

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install php53
brew install php53-pdflib

Edit this file:

/usr/local/etc/php/5.3/conf.d/ext-pdflib.ini

Change pdflib.so to pdf.so