05、安装 imagemagick php5 接口
遇到 Please provide the prefix of Imagemagick installation [autodetect] : 直接回车
- root:~# pecl install imagick
- downloading imagick-3.4.3RC1.tgz ...
- Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
- ......................done: 245,140 bytes
- 19 source files, building
- running: phpize
- Configuring for:
- PHP Api Version: 20121113
- Zend Module Api No: 20121212
- Zend Extension Api No: 220121212
- Please provide the prefix of Imagemagick installation [autodetect] :
- building in /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1
- running: /tmp/pear/temp/imagick/configure --with-imagick
- checking for grep that handles long lines and -e... /bin/grep
- checking for egrep... /bin/grep -E
- checking for a sed that does not truncate output... /bin/sed
- checking for cc... cc
- checking whether the C compiler works... yes
- checking for C compiler default output file name... a.out
- checking for suffix of executables...
- checking whether we are cross compiling... no
- 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... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking target system type... x86_64-unknown-linux-gnu
- checking for PHP prefix... /usr
- checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
- checking for PHP extension directory... /usr/lib/php5/20121212
- checking for PHP installed headers prefix... /usr/include/php5
- 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... nawk
- checking if nawk is broken... no
- checking whether to enable the imagick extension... yes, shared
- checking for pkg-config... /usr/bin/pkg-config
- checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
- checking Testing /usr/bin/MagickWand-config... It exists
- found in /usr/bin/MagickWand-config
- checking if ImageMagick version is at least 6.2.4... found version 6.7.7 Q16
- checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
- checking PHP version is at least 5.1.3... yes. found 5.5.9-1ubuntu4.17
- libs
- -lMagickWand -lMagickCore
- checking for MagickGetVersion... no
- checking for __MagickGetVersion... no
- checking for MagickSetImageInterpolateMethod... no
- checking for __MagickSetImageInterpolateMethod... no
- checking how to print strings... printf
- checking for a sed that does not truncate output... (cached) /bin/sed
- checking for fgrep... /bin/grep -F
- checking for ld used by cc... /usr/bin/ld
- checking if the linker (/usr/bin/ld) is GNU ld... yes
- checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
- checking the name lister (/usr/bin/nm -B) interface... BSD nm
- checking whether ln -s works... yes
- checking the maximum length of command line arguments... 1572864
- checking whether the shell understands some XSI constructs... yes
- checking whether the shell understands "+="... yes
- checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
- checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
- checking for /usr/bin/ld option to reload object files... -r
- checking for objdump... objdump
- checking how to recognize dependent libraries... pass_all
- checking for dlltool... no
- checking how to associate runtime and link libraries... printf %s\n
- checking for ar... ar
- checking for archiver @FILE support... @
- checking for strip... strip
- checking for ranlib... ranlib
- checking for gawk... (cached) nawk
- checking command to parse /usr/bin/nm -B output from cc object... ok
- checking for sysroot... no
- checking for mt... mt
- checking if mt is a manifest tool... no
- checking for ANSI C header files... yes
- checking for sys/types.h... yes
- checking for sys/stat.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for memory.h... yes
- checking for strings.h... yes
- checking for inttypes.h... yes
- checking for stdint.h... yes
- checking for unistd.h... yes
- checking for dlfcn.h... yes
- checking for objdir... .libs
- checking if cc supports -fno-rtti -fno-exceptions... no
- checking for cc option to produce PIC... -fPIC -DPIC
- checking if cc PIC flag -fPIC -DPIC works... yes
- checking if cc static flag -static works... yes
- checking if cc supports -c -o file.o... yes
- checking if cc supports -c -o file.o... (cached) yes
- checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
- checking whether -lc should be explicitly linked in... no
- checking dynamic linker characteristics... GNU/Linux ld.so
- checking how to hardcode library paths into programs... immediate
- checking whether stripping libraries is possible... yes
- checking if libtool supports shared libraries... yes
- checking whether to build shared libraries... yes
- checking whether to build static libraries... no
- configure: creating ./config.status
- config.status: creating config.h
- config.status: executing libtool commands
- running: make
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_file.c -o imagick_file.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_file.c -fPIC -DPIC -o .libs/imagick_file.o
- /tmp/pear/temp/imagick/imagick_file.c: In function 'php_imagick_is_url':
- /tmp/pear/temp/imagick/imagick_file.c:85:2: warning: passing argument 2 of 'php_stream_locate_url_wrapper' from incompatible pointer type [enabled by default]
- if (php_stream_locate_url_wrapper(filename, &path_for_open, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC)) {
- ^
- In file included from /usr/include/php5/main/php.h:396:0,
- from /tmp/pear/temp/imagick/php_imagick.h:40,
- from /tmp/pear/temp/imagick/imagick_file.c:21:
- /usr/include/php5/main/php_streams.h:548:28: note: expected 'char **' but argument is of type 'const char **'
- PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char **path_for_open, int options TSRMLS_DC);
- ^
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -o imagick_class.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagematte':
- /tmp/pear/temp/imagick/imagick_class.c:299:2: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82) [-Wdeprecated-declarations]
- matte = MagickGetImageMatte(intern->magick_wand);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
- /tmp/pear/temp/imagick/imagick_class.c:1248:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
- status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, NULL, x, y);
- ^
- /tmp/pear/temp/imagick/imagick_class.c:1256:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
- status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, border_wand, x, y);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_recolorimage':
- /tmp/pear/temp/imagick/imagick_class.c:1738:2: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109) [-Wdeprecated-declarations]
- status = MagickRecolorImage(intern->magick_wand, order, array);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
- /tmp/pear/temp/imagick/imagick_class.c:4279:2: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75) [-Wdeprecated-declarations]
- status = MagickColorFloodfillImage(intern->magick_wand, fill_wand, fuzz, border_wand, x, y);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mapimage':
- /tmp/pear/temp/imagick/imagick_class.c:4707:2: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86) [-Wdeprecated-declarations]
- status = MagickMapImage(intern->magick_wand, intern_map->magick_wand, dither);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
- /tmp/pear/temp/imagick/imagick_class.c:4748:2: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88) [-Wdeprecated-declarations]
- status = MagickMatteFloodfillImage(intern->magick_wand, alpha, fuzz, color_wand, x, y);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_medianfilterimage':
- /tmp/pear/temp/imagick/imagick_class.c:4786:2: warning: 'MagickMedianFilterImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:217) [-Wdeprecated-declarations]
- status = MagickMedianFilterImage(intern->magick_wand, radius);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
- /tmp/pear/temp/imagick/imagick_class.c:4868:2: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104) [-Wdeprecated-declarations]
- status = MagickPaintOpaqueImageChannel(intern->magick_wand, channel, target_wand, fill_wand, fuzz);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_painttransparentimage':
- /tmp/pear/temp/imagick/imagick_class.c:4951:2: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107) [-Wdeprecated-declarations]
- status = MagickPaintTransparentImage(intern->magick_wand, color_wand, alpha, fuzz);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
- /tmp/pear/temp/imagick/imagick_class.c:5115:2: warning: 'MagickReduceNoiseImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:265) [-Wdeprecated-declarations]
- status = MagickReduceNoiseImage(intern->magick_wand, radius);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageattribute':
- /tmp/pear/temp/imagick/imagick_class.c:6444:2: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59) [-Wdeprecated-declarations]
- attribute = MagickGetImageAttribute(intern->magick_wand, key);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
- /tmp/pear/temp/imagick/imagick_class.c:6661:2: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78) [-Wdeprecated-declarations]
- status = MagickGetImageChannelExtrema(intern->magick_wand, channel_type, &minima, &maxima);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageextrema':
- /tmp/pear/temp/imagick/imagick_class.c:7003:2: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80) [-Wdeprecated-declarations]
- status = MagickGetImageExtrema(intern->magick_wand, &min, &max);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageindex':
- /tmp/pear/temp/imagick/imagick_class.c:8115:2: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65) [-Wdeprecated-declarations]
- status = MagickGetImageIndex(intern->magick_wand);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagesize':
- /tmp/pear/temp/imagick/imagick_class.c:8236:2: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140) [-Wdeprecated-declarations]
- ZVAL_LONG(return_value, (long)MagickGetImageSize(intern->magick_wand));
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageattribute':
- /tmp/pear/temp/imagick/imagick_class.c:8710:2: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111) [-Wdeprecated-declarations]
- status = MagickSetImageAttribute(intern->magick_wand, key, attribute);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_flattenimages':
- /tmp/pear/temp/imagick/imagick_class.c:9085:2: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132) [-Wdeprecated-declarations]
- tmp_wand = MagickFlattenImages(intern->magick_wand);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_averageimages':
- /tmp/pear/temp/imagick/imagick_class.c:10272:2: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131) [-Wdeprecated-declarations]
- tmp_wand = MagickAverageImages(intern->magick_wand);
- ^
- /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mosaicimages':
- /tmp/pear/temp/imagick/imagick_class.c:10775:2: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135) [-Wdeprecated-declarations]
- tmp_wand = MagickMosaicImages(intern->magick_wand);
- ^
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickdraw_class.c -o imagickdraw_class.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickdraw_class.c -fPIC -DPIC -o .libs/imagickdraw_class.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixel_class.c -o imagickpixel_class.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixel_class.c -fPIC -DPIC -o .libs/imagickpixel_class.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixeliterator_class.c -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_helpers.c -o imagick_helpers.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_helpers.c -fPIC -DPIC -o .libs/imagick_helpers.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick.c -o imagick.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick.c -fPIC -DPIC -o .libs/imagick.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickkernel_class.c -o imagickkernel_class.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickkernel_class.c -fPIC -DPIC -o .libs/imagickkernel_class.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/shim_im6_to_im7.c -o shim_im6_to_im7.lo
- libtool: compile: cc -fopenmp -I/usr/include/ImageMagick -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/shim_im6_to_im7.c -fPIC -DPIC -o .libs/shim_im6_to_im7.o
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/include -I/tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/main -I/tmp/pear/temp/imagick -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo imagickkernel_class.lo shim_im6_to_im7.lo -lMagickWand -lMagickCore
- libtool: link: cc -shared -fPIC -DPIC .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o .libs/imagickkernel_class.o .libs/shim_im6_to_im7.o /usr/lib/x86_64-linux-gnu/libMagickWand.so /usr/lib/x86_64-linux-gnu/libMagickCore.so -O2 -fopenmp -pthread -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
- libtool: link: ( cd ".libs" && rm -f "imagick.la" && ln -s "../imagick.la" "imagick.la" )
- /bin/bash /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/libtool --mode=install cp ./imagick.la /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules
- libtool: install: cp ./.libs/imagick.so /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules/imagick.so
- libtool: install: cp ./.libs/imagick.lai /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules/imagick.la
- libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules
- ----------------------------------------------------------------------
- Libraries have been installed in:
- /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules
- If you ever happen to want to link against installed libraries
- in a given directory, LIBDIR, you must either use libtool, and
- specify the full pathname of the library, or use the `-LLIBDIR'
- flag during linking and do at least one of the following:
- - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
- during execution
- - add LIBDIR to the `LD_RUN_PATH' environment variable
- during linking
- - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- - have your system administrator add LIBDIR to `/etc/ld.so.conf'
- See any operating system documentation about shared libraries for
- more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
- Build complete.
- Don't forget to run 'make test'.
- running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1" install
- Installing shared extensions: /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib/php5/20121212/
- Installing header files: /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5/
- running: find "/tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1" | xargs ls -dils
- 1049274 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1
- 1049312 4 drwxr-xr-x 4 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr
- 1049316 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include
- 1049317 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5
- 1049318 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5/ext
- 1049319 4 drwxr-xr-x 2 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5/ext/imagick
- 1049320 4 -rw-r--r-- 1 root root 1828 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5/ext/imagick/php_imagick_shared.h
- 1049313 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib
- 1049314 4 drwxr-xr-x 3 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib/php5
- 1049315 4 drwxr-xr-x 2 root root 4096 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib/php5/20121212
- 1049311 1252 -rwxr-xr-x 1 root root 1277954 Jul 8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib/php5/20121212/imagick.so
- Build process completed successfully
- Installing '/usr/lib/php5/20121212/imagick.so'
- Installing '/usr/include/php5/ext/imagick/php_imagick_shared.h'
- install ok: channel://pecl.php.net/imagick-3.4.3RC1
- configuration option "php_ini" is not set to php.ini location
- You should add "extension=imagick.so" to php.ini
- root:~#
复制代码 06、配置 php.ini 文件
- vi /etc/php5/fpm/php.ini
- 在; extension=msql.so 下添加 extension=imagick.so
- echo extension=imagick.so
复制代码 07、重启服务器
- service php5-fpm stop
- service php5-fpm start
- service nginx restart
- php -m | grep imagick
- shutdown -r +1
复制代码 08、测试
转到网站根目录,vi ./info.php,添加以下代码:
在浏览器中访问探针文件 (譬如:http://www.digitser.cn/info.php) --> 正常的话,会出现上图所示 imagick 相关信息
请关注 "德云社区" 及其微信公众号,了解相关资讯
版权声明:
本文为独家原创稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。
|