Configuration where this problem occurs: OSX 10.7, XAMPP Mac OS X 1.7.3, Image Magic installed with homebrew, Apple Websharing turned OFF.
Problem description: Can't install Imagick PHP extension for Image Magic due to problems with PHP version between OSX and XAMPP.
I installed XAMPP in the latest version together with the XAMPP development tool.
Then I like to add the Imagick extension to my PHP configuration by using PECL to install the Image Magic wrapper.
cd /Applications/XAMPP/xamppfiles/bin
sudo ./pecl install imagick
The result says installed successful. When opening a PHP files that uses Imagick I get the following error
Fatal error: Class 'imagick' not found in /Users/philipp/appbackr/code/site/trunk/include/function.php on line 439
As far as I understand is the error the following: XAMPP uses PHP ver 5.3.1 When using PECL for installing and building Imagick it looks like that it's using OSX 10.7 build in PHP ver 5.3.6. The version difference is shown by executing a phpinfo() within XAMPP and with PHP phpinfo.php in the command line.
I look to me that the PECL installation is build with the default PHP version that is shipped with Lion and that this is causing a problem.
How can I get this running on my local machine? What do I have to configure so that I can install XAMPP extensions with PECL.
extension=imagick.sosomewhere in you PHP configuration, didn't you? – Wrikken Aug 2 '11 at 1:55PHP? Is it a seperate PHP installation package? In this case, just change environment variables to use the new php path. – Starx Aug 2 '11 at 2:03