(1) Download PDFLib 8.0
Don't install. Instead, enter the downloaded disk image, and surf to:
/bind/php/php-520/libpdf_php.so
Copy that file into:
/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613
(2) Open Terminal and:
chmod +x /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/libpdf_php.so
(3) REM out
#DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#export DYLD_LIBRARY_PATH
in the file
/Applications/MAMP/Library/bin/envvars
by adding # to the beginning of those two lines.
(4) Add
extension=libpdf_php.so
to extension section of php.ini for php5
REBOOT APACHE AND CHECK THAT PDFLIB IS ENABLED IN PHPINFO.
CREDITS TO JAMES WRIGHT IN THE MAMP FORUM. THANKS YOU JAMES WHERE EVER YOU ARE.
Subscribe to:
Post Comments (Atom)
Hey! Thank you for your post. The paths and filenames have since changed a bit. I compiled a blogpost myself with the current values. There's not that much difference: http://www.justusbluemer.de/blog/217/pdflib-unter-mamp-installieren
ReplyDelete