#You *must* (at least on my system) add the line in your php.ini "extension=magickwand.so
|
# restart apache, and hit kernel/admin/phpinfo.php to make sure you have it installed and running.
|
|
-!!MagicWand on UNIX w/ PHP src-build
|
-if you're installing MagickWand-PHP into a PHP src build, the instructions are just a little different ...
|
+!!MagicWand on UNIX as embedded ext in PHP src-build |
+if you're installing MagickWand-PHP *into* (embedded) a PHP src build, the instructions are just a little different ... |
|
-given an *existing* php install (you're gonna need the 'phpize' bin ...)
|
-
|
-// DL & unpack latest magickwand-php
|
-cd /tmp
|
-wget http://www.magickwand.org/download/php/magickwand-0.1.8.tar.gz
|
-gnutar zxvf magickwand-0.1.8.tar.gz
|
-
|
-// install into php source tree
|
-mv magickwand/ /path/to/php-src/ext/
|
-
|
-// find your existing ImageMagick install
|
-which Wand-config
|
- /usr/local/bin/Wand-config
|
-
|
-// prep the magickwand extension for php build
|
-cd /path/to/php-src/ext/magickwand
|
-phpize
|
-
|
-// rebuild PHP with magickwand extension
|
-cd /path/to/php-src
|
-rm ./configure
|
-make distclean
|
-./buildconf --force
|
-
|
-RUN:
|
-./configure \
|
-... (as before) ... \
|
---with--magickwand=/usr/local
|
-make
|
-make install
|
-rehash
|
-
|
-// check your install ...
|
-php -i | grep "MagickWand Backend Library"
|
- MagickWand Backend Library => ImageMagick
|
-php -i | grep "MagickWand Extension Version"
|
- MagickWand Extension Version => 0.1.8
|
-
|
-note that in a src-build, there is no standalone magickwand.so created ... rather it's "in" libphp5.so:
|
-
|
-otool -L /usr/local/apache2/libexec/libphp5.so | grep libMagick
|
- /usr/local/lib/libMagick.10.dylib (compatibility version 11.0.0, current version 11.1.0)
|
-
|
-nonetheless, you'll still need to add to your php.ini:
|
-
|
- extension=magickwand.so
|
-
|
-and restart apache.
|
+[ i've removed this option/comment, as bw.o's installer isn't 'happy' unless the re's a standalone *.so ... i.e., don't embed the extension. ] |
|
|
!!MagicWand on Windows
|
-# Download php-|PHP_V|_magickwand_q8_st.dll from [ftp://ftp.imagemagick.org/pub/ImageMagick/php/] (5.0.4 works fine in PHP5.0.5)
|
-# Add extension="php-|PHP_V|_magickwand_q8_st.dll" to your php.ini file
|
+# Download php_magickwand_q16_st.dll from [ftp://ftp.imagemagick.org/pub/ImageMagick/php/windows] (This is for 5.2.x still tring to find a copy for PHP5.1.x) |
+# Place the file in the ext directory of your PHP installation. |
+# Add extension="php_magickwand_q16_st.dll" to your php.ini file |
# Restart Apache
|
# Here are [http://studio.imagemagick.org/magick/viewtopic.php?t=4708|detailed instructions for windows]
|
|