ImageMagick + magickwand for PHP 安装手记
- Posted at March 23rd, 2006 16:26
- Filed under 无分类
网上æµä¼ 的安装方法都有问题,在configure PHP的时候会出错!
è¿˜æ˜¯æŒ‰è‡ªå·±æ‘¸ç´¢çš„æ–¹æ³•å®‰è£…æ‰æˆåŠŸ,给大家分享一下.
首先è¦é€‰æ‹©6.2.6以上版本,magickwand INSTALL说的支æŒ6.2.4-1版本似乎有点问题,我编译ä¸è¿‡.
1.安装ImageMagick
tar –zxvf ImageMagick-6.2.6-5.tar.gz
cd ImageMagick-6.2.6
./configure LDFLAGS="-L/usr/lib" CPPFLAGS="-I/usr/include" --prefix=/usr/local/ImageMagick --enable-shared --enable-lzw
make
make install
2.安装PHP
tar –zxvf php-4.3.6.tar.gz
cd php-4.3.6
./configure --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-freetype --without-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-png --enable-ftp --enable-sockets -with-xml --with-dom --with-zlib --enable-track-vars --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
make
make install
说明:ä¸å¸¦--with-imagick=/usr/local/ImageMagick傿•°å…ˆå®‰è£…一下PHP,之åŽè¦ç”¨åˆ°phpize命令.
3.安装magickwand-0.1.8
unzip magickwand-0.1.8.zip
mv magickwand php-4.3.6/ext/
cd php-4.3.6/ext/magickwand
phpize
cd ../../
rm -rf configure
./buildconf –force
export PATH=${PATH}:/usr/local/ImageMagick/bin
#关键一æ¥,å¦åˆ™ç¼–è¯‘æ— æ³•é€šè¿‡,ä¼šæœ‰è¿™æ ·é”™è¯¯è¯¯å¯¼ä½ :
[CODE]..........
checking for ImageMagick / MagickWand in provided path... found in /usr/local/ImageMagick
checking for ImageMagick / MagickWand 6.2.4 or greater with /usr/local/ImageMagick/bin/Wand-config... 6.2.6
/usr/local/ImageMagick/bin/Wand-config: line 42: Magick-config: command not found
/usr/local/ImageMagick/bin/Wand-config: line 39: Magick-config: command not found
...........
...........
checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.[/CODE]
./configure --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-freetype --without-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-png --enable-ftp --enable-sockets -with-xml --with-dom --with-zlib --enable-track-vars --with-mysql=/usr/local/mysql --with-imagick=/usr/local/ImageMagick --with-apxs2=/usr/local/apache2/bin/apxs
make
make install
剩下ä¸å¤šè¯´äº†çš„å‚考PHP+apache的安装文档.
æˆåŠŸåŽåœ¨phpinfo()里å¯ä»¥çœ‹åˆ°:
Posted by microsea
- Tag
- ImageMagick, magickwand
- Response
- No Trackback , 7 Comments
Trackback URL : 无法向此文章发送引用
Comments List
-
ë„ˆì˜ ë°©ë¬¸í•œ 위치를 ì¦ê¸°ëŠ”!
-
ì´ ìœ„ì¹˜ëŠ” ì•„ë‹ˆë¼ ìœ ìµí•œë¿ 재미있는다!
-
ì •ë³´ë¥¼ 위한 ê°ì‚¬í•©ë‹ˆë‹¤.
-
걸출한 위치! ë§Žì€ ê°ì‚¬.
-
너는 위치를차가운 만들었다!
-
너는 위치가 우수한 있는다!
-
재미있는 아주 지점. 감사.
