ライオンのイメージインストールの問題

現在、私はMAMPを使ってmacライオンにimagickを正しくインストールすることに問題があります。

私はImageMagick-6.7.3を正常にインストールしました。私はコマンドラインで呼び出しをテストしました。注:ImageMagick-6.7.3のbinフォルダには、Magick-config、MagickWand-config、およびWand-configがあります。

ImageMagickライブラリにラッパーを提供するimagick-3.2.0RC1をインストールしようとしています。しかし、これは私が問題を抱えているところです。これがインストールされていないと、私のPHPスクリプトは実行されず、Imagickの使い方がわからなくなります。

私はもう試した 1)sudo pecl install magick

出力:

downloading imagick-3.0.1.tgz ...
Starting to download imagick-3.0.1.tgz (93,920 bytes)
.....................done: 93,920 bytes
13 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the prefix of Imagemagick installation [autodetect] : 
building in /private/tmp/pear/temp/pear-build-rootEzaTTE/imagick-3.0.1
running: /private/tmp/pear/temp/imagick/configure --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin11.2.0
checking host system type... i386-apple-darwin11.2.0
checking target system type... i386-apple-darwin11.2.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/private/tmp/pear/temp/imagick/configure --with-imagick' failed

ご覧のとおり、MagickWand-configが見つからないという不満があります。

しかし、MagickWand-configのパスが正しいことは確かです。私は端末を開いて型をつけた

acBook-Pro:imagick-3.1.0RC1 $ Wand-config --version
6.7.3 Q16 

それが設定されていない場合、それは決してうまくいってはいけない環境のパスです。

私も$ PATHを出力しました:

-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/MAMP/Library/bin:/Users/darewreck/Downloads/MAMP_components_2.0.2/mysql-5.5.9/include:/Applications/ImageMagick-6.7.3/bin:/usr/X11/bin: No such file or directory

更新: 私はhomebrewをインストールし、次のことができました:

brew install imagemagick

これで私は "pecl install imagick"をうまく呼び出すことができました。

次の問題は、私がmakeと呼ぶときです:

-MacBook-Pro:imagick-2.2.2 darewreck$ make
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c -o imagick_class.lo 
mkdir .libs
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c  -fno-common -DPIC -o .libs/imagick_class.o
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagematte’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:262: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:82)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:1035: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:101)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:1038: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:101)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_clippathimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2319: warning: ‘MagickClipPathImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:74)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2382: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:77)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mapimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2772: warning: ‘MagickMapImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:87)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2805: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:90)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2832: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/magick-image.h:212)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2895: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:106)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2954: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:108)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:3097: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/magick-image.h:260)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4080: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:60)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4253: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:79)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4482: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:81)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageindex’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5196: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:65)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_setimageindex’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5221: warning: ‘MagickSetImageIndex’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:114)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagesize’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5291: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:140)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5599: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:112)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_flattenimages’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5839: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:132)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_averageimages’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:6859: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:131)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:7283: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:135)
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c -o imagickdraw_class.lo 
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c  -fno-common -DPIC -o .libs/imagickdraw_class.o
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c: In function ‘zim_imagickdraw_setfillalpha’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c:253: warning: ‘DrawSetFillAlpha’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:167)
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c: In function ‘zim_imagickdraw_setstrokealpha’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c:313: warning: ‘DrawSetStrokeAlpha’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:168)
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixel_class.c -o imagickpixel_class.lo 
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixel_class.c  -fno-common -DPIC -o .libs/imagickpixel_class.o
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo 
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixeliterator_class.c  -fno-common -DPIC -o .libs/imagickpixeliterator_class.o
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c -o imagick_helpers.lo 
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c  -fno-common -DPIC -o .libs/imagick_helpers.o
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c: In function ‘php_imagick_progress_monitor’:
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘MagickOffsetType’
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘MagickSizeType’
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘MagickOffsetType’
/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘MagickSizeType’
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick.c -o imagick.lo 
 cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick.c  -fno-common -DPIC -o .libs/imagick.o
/bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/modules  imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -Wl,-rpath,/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickWand -Wl,-rpath,/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/imagick.so -bundle  .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o  -L/usr/local/Cellar/imagemagick/6.7.1-1/lib /usr/local/Cellar/imagemagick/6.7.1-1/lib/libMagickWand.dylib -L/usr/X11/lib /usr/local/Cellar/imagemagick/6.7.1-1/lib/libMagickCore.dylib  -Wl,-rpath -Wl,/usr/local/Cellar/imagemagick/6.7.1-1/lib -Wl,-rpath -Wl,/usr/local/Cellar/imagemagick/6.7.1-1/lib
ld: file not found: /usr/local/lib/liblcms.1.0.19.dylib for architecture x86_64
collect2: ld returned 1 exit status
make: *** [imagick.la] Error 1

私はバグがあるかもしれないというバージョンを言っているスレッドを読んでいたので、私はimagick-2.2.2をビルドしようとしましたが、まだ動いていませんでした。

どんなアドバイスも感謝しています。 ありがとう、 D

5

5 答え

whichを使用して、ワンドバイナリがどこにあるかを調べます(通常は/ opt/local /)。

$ which Wand-config
/opt/local/bin/Wand-config

imagickをインストールする:

$ sudo pecl install imagick

Imagemagickのパスを入力するように指示されたら、Wand-configへのパスとして返された結果を bin /

Please provide the prefix of Imagemagick installation [autodetect] : /opt/local/

追加することを確認してください

extension=imagick.so

あなたのphp.iniに

10
追加された
こんにちは、私はまさにその通りでしたが、私はまだエラーがあります: Wand-config/opt/local/bin/Wand-config - > ./pecl install imagick ERROR:/private/tmp/pear/temp/imagick/configure --with- imagick =/opt/local/'失敗しました。あなたはどこかでエラーを見ますか?ありがとう
追加された 著者 Pascal Messana,
あなたはsudoとしてimagickをインストールしようとしましたか?
追加された 著者 ahonnecke,

すべてが失敗し、一般的にcli関連のものをインストールする場合は、この種のものに非常に役立ち、ほとんどの人のために働くhomebrewを使うことを検討したいかもしれません。ホームページをチェックしてください。 https://github.com/mxcl/homebrew

ホームブリューは、新たなフィンクであった新しいマックポートです。私はそれを強くお勧めします。 mysql、php、apacheのインストールにも使用できます。

1
追加された
私はその道を歩いた。しかし、今私はmakeと呼ばれる問題があります。私はその問題を私の投稿に更新します。
追加された 著者 darewreck,
Brew doctor を試して、出力が何を表示しているかを確認してください。
追加された 著者 three,

私は同じ問題に遭遇し、修正を見つけることに終わった。それは、あなたが次のコマンド(私はmacports、btwを使用しています)が必要です。

# sudo ln -s /usr/local/bin `which MagickWand-config`
# sudo ln -s /opt/local/include/ImageMagick-6 /opt/local/include/ImageMagick

その後、簡単な " sudo pecl install imagick "が私のために働いた。

これらの変更の理由は、 imagick パッケージの設定ファイルのコードを見ると、 MagickWand-config バイナリを探している/usr/bin フォルダと/usr/local/bin フォルダにあります。また、/opt/local/include/ImageMagick フォルダ内のヘッダーファイルを検索しますが、MacPortsはImageMagickの最新バージョンのヘッダファイルを/opt/local/include/ImageMagick -6

あなたの問題の説明を見ると、PHPのインクルードファイルが適切な場所から供給されているかどうかはわかりません。これはまったく別の問題ですが、適切なphpインクルードファイルがソースになっていることを確認するには、次のことを行う必要があります。

  1. Download the source files for the proper version of PHP from http://www.php.net/get/php-5.X.X.tar.bz2/from/a/mirror. For the latest version of php5.3 supported by MAMP (at the time of writting, 5.3.20), use this: http://www.php.net/get/php-5.3.20.tar.bz2/from/a/mirror

  2. Create a folder named include inside your /Applications/MAMP/bin/php/php5.X.X folder. In our example:

    sudo mkdir -p /Applications/MAMP/bin/php/php5.3.20/include

  3. Untar the PHP source code into the new include folder. In our example:

    cd /Applications/MAMP/bin/php/php5.3.20/include

    sudo tar -jvxf ~/Downloads/php-5.3.20.tar.bz2

  4. Rename the PHP folder from php-5.x.x to just php. As so:

    sudo mv php{-5.3.20,}

  5. Make sure that MAMP's PHP is called before OSX'. There are several ways to achieve this. An easy way that works for every profile is editing the /etc/paths file and making sure that a line like /Applications/MAMP/bin/php/php5.x.x/bin precedes the line /usr/local/bin. In my case, that file looks like this:

    /opt/local/bin

    /opt/local/sbin

    /Applications/MAMP/bin/php/php5.3.20/bin

    /usr/local/bin

    /usr/bin

    /bin

    /usr/sbin

    /sbin

  6. Go inside the PHP folder and run ./configure. As so:

    cd php

    ./configure

/etc/paths ファイルを変更した後、新しい設定を適用するには、端末を閉じて再度開く必要があります。

1
追加された

次の記事は、MAMP 2とLionのPECLでimagickのインストールを解決するのに役立ちました。 http: /thoomtech.com/post/8832473042/mamp-imagemagick-lion MAMPに含まれているPECLインストーラの使い方については、ポストのパート1を必ず読んでください。それはまっすぐであり、私のためにうまくいった。

1
追加された

この問題を抱えている人には、私のポストをここに読んでください:

http:// delboy1978uk.wordpress.com/2013/04/29/install-imagemagick-and-imagick-on-mac-os-x-lion/

PHP 5.4の場合は、ベータ版と前と後ろに設定する必要があります。

sudo pear config-set preferred_state beta

sudo pecl install imagick

sudo pear config-set preferred_state stable
1
追加された
PHP - 日本のコミュニティ [ja]
PHP - 日本のコミュニティ [ja]
4 参加者の

このグループではPHPについて話します。 パートナー:kotaeta.com