Page 1 of 1

installation on mac os 10.6

Posted: 2015-03-03T06:36:47-07:00
by feehahhk
hi people!

yes, i am willing to get the imagick php extension running on my macbook. (i am using: os 10.6, apache 2.2.26, php 5.3.28; installed separately, no mamp) yesterday I tried several things which did not lead to success. here is what i have done:

- I installed the pear and pecl extensions and this worked out, i could access boths programs in the terminal and also could access pear content from my webserver. I added this to the php.ini.default : include_path = ".:/php/includes:/Users/me/pear" (when i duplicated the php.ini.default to php.ini including in php scripts was not functioning anymore)

- anyway, the desired commands like "pear / pecl install imagick " did not work. pahts where not found, some autoconfig errors..

- then I tried it with homebrew! for that I had to install the xcode command line tools. I did not have acces to my installation cd and did not really want to log in to the mac dev page, so i used: GCC (https://github.com/kennethreitz/osx-gcc-installer)

- homebrew seemed to work afterwards, had to install the git before using it for installing the imagick packages.

. then I used the commands brew install imagemagick, afterwards: brew install imagick ; even though there where some error messages (unfortunately i did not note them), these installations seemed to work well in the end, so i thought I am done done.

- finally i should add: extension='/usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' to the php ini, but this file is not existing, in the folder there is only xdebug.so (was the installation not successful?)

- when i try to use $image = new Imagick('image.jpg'); in a php script, it sais that the class was not found.



OK, anybody knows what to do / check next? I have several guesses, but kind of don't want to spent so much time (and risk) trying them. should I change to mamp? should I use the real xcode stuff? Or are there some other proposes? I want to proceed without randomly trying things ;-)


would be really kind If somebody could assist me here, ask me if i was not clear in some points, greetings. m!