Black
Black

Reputation: 5367

installing PDFLib to PHP 5.3 on Mac OSX 10.6

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?

Upvotes: 0

Views: 2529

Answers (2)

Tieme
Tieme

Reputation: 65409

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

Upvotes: 1

Black
Black

Reputation: 5367

apparently the solution is to use the 10.5 binaries: http://www.pdflib.com/binaries/PDFlib/705/PDFlib-7.0.5-MacOSX-10.5-Universal-php.dmg

Upvotes: 0

Related Questions