python html5 bootstrap 视频教程
德云社区 门户 IT 编程 Linux & Unix Ubuntu & Debian 查看内容

在 Ubuntu Server 14.04 下安装 ImageMagick 的 PHP5 imagick-3.4.3RC1 扩展

2016-7-9 00:44| 发布者: digitser| 查看: 7966| 评论: 0|原作者: money

摘要: 在 Ubuntu Server 14.04 下安装 ImageMagick 的 PHP5 imagick-3.4.3RC1 扩展 ImageMagick 是一个免费开源、用于编辑、创建、合成图像的工具。ImageMagick 可读取、转换、写入多种格式图像。包括:图像切割、颜色替 ...
自动立式分页纸箱赋码系统 ── 全自动 专业 立式分页 瓦楞纸 水性油墨 贴标 喷码 检测系统

05、安装 imagemagick php5 接口

  遇到 Please provide the prefix of Imagemagick installation [autodetect] : 直接回车

  1. root:~# pecl install imagick
  2. downloading imagick-3.4.3RC1.tgz ...
  3. Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
  4. ......................done: 245,140 bytes
  5. 19 source files, building
  6. running: phpize
  7. Configuring for:
  8. PHP Api Version:         20121113
  9. Zend Module Api No:      20121212
  10. Zend Extension Api No:   220121212
  11. Please provide the prefix of Imagemagick installation [autodetect] :
  12. building in /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1
  13. running: /tmp/pear/temp/imagick/configure --with-imagick
  14. checking for grep that handles long lines and -e... /bin/grep
  15. checking for egrep... /bin/grep -E
  16. checking for a sed that does not truncate output... /bin/sed
  17. checking for cc... cc
  18. checking whether the C compiler works... yes
  19. checking for C compiler default output file name... a.out
  20. checking for suffix of executables...
  21. checking whether we are cross compiling... no
  22. checking for suffix of object files... o
  23. checking whether we are using the GNU C compiler... yes
  24. checking whether cc accepts -g... yes
  25. checking for cc option to accept ISO C89... none needed
  26. checking how to run the C preprocessor... cc -E
  27. checking for icc... no
  28. checking for suncc... no
  29. checking whether cc understands -c and -o together... yes
  30. checking for system library directory... lib
  31. checking if compiler supports -R... no
  32. checking if compiler supports -Wl,-rpath,... yes
  33. checking build system type... x86_64-unknown-linux-gnu
  34. checking host system type... x86_64-unknown-linux-gnu
  35. checking target system type... x86_64-unknown-linux-gnu
  36. checking for PHP prefix... /usr
  37. 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
  38. checking for PHP extension directory... /usr/lib/php5/20121212
  39. checking for PHP installed headers prefix... /usr/include/php5
  40. checking if debug is enabled... no
  41. checking if zts is enabled... no
  42. checking for re2c... no
  43. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  44. checking for gawk... no
  45. checking for nawk... nawk
  46. checking if nawk is broken... no
  47. checking whether to enable the imagick extension... yes, shared
  48. checking for pkg-config... /usr/bin/pkg-config
  49. checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
  50. checking Testing /usr/bin/MagickWand-config... It exists
  51. found in /usr/bin/MagickWand-config
  52. checking if ImageMagick version is at least 6.2.4... found version 6.7.7 Q16
  53. checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
  54. checking PHP version is at least 5.1.3... yes. found 5.5.9-1ubuntu4.17
  55. libs
  56. -lMagickWand -lMagickCore


  57. checking for MagickGetVersion... no
  58. checking for __MagickGetVersion... no
  59. checking for MagickSetImageInterpolateMethod... no
  60. checking for __MagickSetImageInterpolateMethod... no
  61. checking how to print strings... printf
  62. checking for a sed that does not truncate output... (cached) /bin/sed
  63. checking for fgrep... /bin/grep -F
  64. checking for ld used by cc... /usr/bin/ld
  65. checking if the linker (/usr/bin/ld) is GNU ld... yes
  66. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  67. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  68. checking whether ln -s works... yes
  69. checking the maximum length of command line arguments... 1572864
  70. checking whether the shell understands some XSI constructs... yes
  71. checking whether the shell understands "+="... yes
  72. checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
  73. checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
  74. checking for /usr/bin/ld option to reload object files... -r
  75. checking for objdump... objdump
  76. checking how to recognize dependent libraries... pass_all
  77. checking for dlltool... no
  78. checking how to associate runtime and link libraries... printf %s\n
  79. checking for ar... ar
  80. checking for archiver @FILE support... @
  81. checking for strip... strip
  82. checking for ranlib... ranlib
  83. checking for gawk... (cached) nawk
  84. checking command to parse /usr/bin/nm -B output from cc object... ok
  85. checking for sysroot... no
  86. checking for mt... mt
  87. checking if mt is a manifest tool... no
  88. checking for ANSI C header files... yes
  89. checking for sys/types.h... yes
  90. checking for sys/stat.h... yes
  91. checking for stdlib.h... yes
  92. checking for string.h... yes
  93. checking for memory.h... yes
  94. checking for strings.h... yes
  95. checking for inttypes.h... yes
  96. checking for stdint.h... yes
  97. checking for unistd.h... yes
  98. checking for dlfcn.h... yes
  99. checking for objdir... .libs
  100. checking if cc supports -fno-rtti -fno-exceptions... no
  101. checking for cc option to produce PIC... -fPIC -DPIC
  102. checking if cc PIC flag -fPIC -DPIC works... yes
  103. checking if cc static flag -static works... yes
  104. checking if cc supports -c -o file.o... yes
  105. checking if cc supports -c -o file.o... (cached) yes
  106. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  107. checking whether -lc should be explicitly linked in... no
  108. checking dynamic linker characteristics... GNU/Linux ld.so
  109. checking how to hardcode library paths into programs... immediate
  110. checking whether stripping libraries is possible... yes
  111. checking if libtool supports shared libraries... yes
  112. checking whether to build shared libraries... yes
  113. checking whether to build static libraries... no
  114. configure: creating ./config.status
  115. config.status: creating config.h
  116. config.status: executing libtool commands
  117. running: make
  118. /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
  119. 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
  120. /tmp/pear/temp/imagick/imagick_file.c: In function 'php_imagick_is_url':
  121. /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]
  122.   if (php_stream_locate_url_wrapper(filename, &path_for_open, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC)) {
  123.   ^
  124. In file included from /usr/include/php5/main/php.h:396:0,
  125.                  from /tmp/pear/temp/imagick/php_imagick.h:40,
  126.                  from /tmp/pear/temp/imagick/imagick_file.c:21:
  127. /usr/include/php5/main/php_streams.h:548:28: note: expected 'char **' but argument is of type 'const char **'
  128. PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char **path_for_open, int options TSRMLS_DC);
  129.                             ^
  130. /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
  131. 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
  132. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagematte':
  133. /tmp/pear/temp/imagick/imagick_class.c:299:2: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82) [-Wdeprecated-declarations]
  134.   matte = MagickGetImageMatte(intern->magick_wand);
  135.   ^
  136. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
  137. /tmp/pear/temp/imagick/imagick_class.c:1248:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
  138.    status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, NULL, x, y);
  139.    ^
  140. /tmp/pear/temp/imagick/imagick_class.c:1256:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
  141.    status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, border_wand, x, y);
  142.    ^
  143. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_recolorimage':
  144. /tmp/pear/temp/imagick/imagick_class.c:1738:2: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109) [-Wdeprecated-declarations]
  145.   status = MagickRecolorImage(intern->magick_wand, order, array);
  146.   ^
  147. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
  148. /tmp/pear/temp/imagick/imagick_class.c:4279:2: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75) [-Wdeprecated-declarations]
  149.   status = MagickColorFloodfillImage(intern->magick_wand, fill_wand, fuzz, border_wand, x, y);
  150.   ^
  151. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mapimage':
  152. /tmp/pear/temp/imagick/imagick_class.c:4707:2: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86) [-Wdeprecated-declarations]
  153.   status = MagickMapImage(intern->magick_wand, intern_map->magick_wand, dither);
  154.   ^
  155. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
  156. /tmp/pear/temp/imagick/imagick_class.c:4748:2: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88) [-Wdeprecated-declarations]
  157.   status = MagickMatteFloodfillImage(intern->magick_wand, alpha, fuzz, color_wand, x, y);
  158.   ^
  159. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_medianfilterimage':
  160. /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]
  161.   status = MagickMedianFilterImage(intern->magick_wand, radius);
  162.   ^
  163. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
  164. /tmp/pear/temp/imagick/imagick_class.c:4868:2: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104) [-Wdeprecated-declarations]
  165.   status = MagickPaintOpaqueImageChannel(intern->magick_wand, channel, target_wand, fill_wand, fuzz);
  166.   ^
  167. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_painttransparentimage':
  168. /tmp/pear/temp/imagick/imagick_class.c:4951:2: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107) [-Wdeprecated-declarations]
  169.   status = MagickPaintTransparentImage(intern->magick_wand, color_wand, alpha, fuzz);
  170.   ^
  171. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
  172. /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]
  173.   status = MagickReduceNoiseImage(intern->magick_wand, radius);
  174.   ^
  175. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageattribute':
  176. /tmp/pear/temp/imagick/imagick_class.c:6444:2: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59) [-Wdeprecated-declarations]
  177.   attribute = MagickGetImageAttribute(intern->magick_wand, key);
  178.   ^
  179. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
  180. /tmp/pear/temp/imagick/imagick_class.c:6661:2: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78) [-Wdeprecated-declarations]
  181.   status = MagickGetImageChannelExtrema(intern->magick_wand, channel_type, &minima, &maxima);
  182.   ^
  183. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageextrema':
  184. /tmp/pear/temp/imagick/imagick_class.c:7003:2: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80) [-Wdeprecated-declarations]
  185.   status = MagickGetImageExtrema(intern->magick_wand, &min, &max);
  186.   ^
  187. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimageindex':
  188. /tmp/pear/temp/imagick/imagick_class.c:8115:2: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65) [-Wdeprecated-declarations]
  189.   status = MagickGetImageIndex(intern->magick_wand);
  190.   ^
  191. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_getimagesize':
  192. /tmp/pear/temp/imagick/imagick_class.c:8236:2: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140) [-Wdeprecated-declarations]
  193.   ZVAL_LONG(return_value, (long)MagickGetImageSize(intern->magick_wand));
  194.   ^
  195. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageattribute':
  196. /tmp/pear/temp/imagick/imagick_class.c:8710:2: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111) [-Wdeprecated-declarations]
  197.   status = MagickSetImageAttribute(intern->magick_wand, key, attribute);
  198.   ^
  199. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_flattenimages':
  200. /tmp/pear/temp/imagick/imagick_class.c:9085:2: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132) [-Wdeprecated-declarations]
  201.   tmp_wand = MagickFlattenImages(intern->magick_wand);
  202.   ^
  203. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_averageimages':
  204. /tmp/pear/temp/imagick/imagick_class.c:10272:2: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131) [-Wdeprecated-declarations]
  205.   tmp_wand = MagickAverageImages(intern->magick_wand);
  206.   ^
  207. /tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_mosaicimages':
  208. /tmp/pear/temp/imagick/imagick_class.c:10775:2: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135) [-Wdeprecated-declarations]
  209.   tmp_wand = MagickMosaicImages(intern->magick_wand);
  210.   ^
  211. /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
  212. 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
  213. /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
  214. 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
  215. /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
  216. 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
  217. /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
  218. 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
  219. /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
  220. 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
  221. /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
  222. 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
  223. /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
  224. 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
  225. /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
  226. 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
  227. libtool: link: ( cd ".libs" && rm -f "imagick.la" && ln -s "../imagick.la" "imagick.la" )
  228. /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
  229. libtool: install: cp ./.libs/imagick.so /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules/imagick.so
  230. libtool: install: cp ./.libs/imagick.lai /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules/imagick.la
  231. 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
  232. ----------------------------------------------------------------------
  233. Libraries have been installed in:
  234.    /tmp/pear/temp/pear-build-rootkLzIHv/imagick-3.4.3RC1/modules

  235. If you ever happen to want to link against installed libraries
  236. in a given directory, LIBDIR, you must either use libtool, and
  237. specify the full pathname of the library, or use the `-LLIBDIR'
  238. flag during linking and do at least one of the following:
  239.    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  240.      during execution
  241.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  242.      during linking
  243.    - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
  244.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

  245. See any operating system documentation about shared libraries for
  246. more information, such as the ld(1) and ld.so(8) manual pages.
  247. ----------------------------------------------------------------------

  248. Build complete.
  249. Don't forget to run 'make test'.

  250. running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1" install
  251. Installing shared extensions:     /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/lib/php5/20121212/
  252. Installing header files:          /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1/usr/include/php5/
  253. running: find "/tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1" | xargs ls -dils
  254. 1049274    4 drwxr-xr-x 3 root root    4096 Jul  8 23:49 /tmp/pear/temp/pear-build-rootkLzIHv/install-imagick-3.4.3RC1
  255. 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
  256. 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
  257. 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
  258. 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
  259. 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
  260. 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
  261. 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
  262. 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
  263. 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
  264. 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

  265. Build process completed successfully
  266. Installing '/usr/lib/php5/20121212/imagick.so'
  267. Installing '/usr/include/php5/ext/imagick/php_imagick_shared.h'
  268. install ok: channel://pecl.php.net/imagick-3.4.3RC1
  269. configuration option "php_ini" is not set to php.ini location
  270. You should add "extension=imagick.so" to php.ini
  271. root:~#
复制代码
06、配置 php.ini 文件
  1. vi /etc/php5/fpm/php.ini
  2. 在;   extension=msql.so 下添加 extension=imagick.so
  3. echo extension=imagick.so
复制代码
07、重启服务器
  1. service php5-fpm stop
  2. service php5-fpm start
  3. service nginx restart
  4. php -m | grep imagick
  5. shutdown -r +1
复制代码
08、测试
         转到网站根目录,vi ./info.php,添加以下代码:
  1. <?php
  2.      phpinfo ();
  3. ?>
复制代码
       在浏览器中访问探针文件 (譬如:http://www.digitser.cn/info.php) --> 正常的话,会出现上图所示 imagick 相关信息


请关注 "德云社区" 及其微信公众号,了解相关资讯

版权声明:
本文为独家原创稿件,版权归 德云社区,未经许可不得转载;否则,将追究其法律责任。
123

路过

雷人

握手

鲜花

鸡蛋
AI人工智能 语音助理 人工翻译 教程

相关阅读

最新评论

Qt 6.5.1 官方中文文档编制 手册教程 帮助文件 人工翻译
Qt 6.5.1 官方中文文档编制 手册教程 帮助文件 人工翻译 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 Qt 6.5.1。 Qt 6.5.1 中文文档编制[35/2024-10-24]
Qt 6.5.1 官方中文文档编制 手册教程 人工翻译更新日志
Qt 6.5.1 官方中文文档编制 手册教程 人工翻译更新日志 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 Qt 6.5.1。 Qt 6.5.1 中文文档编制采[24/2024-10-24]
数字 Python IDE 2024 注册机 注册码生成器 附详细破解方法
数字 Python IDE 2024 注册机 注册码生成器 附详细破解方法 数字 Python IDE 目前还在不断研发 进步中,虽不太成熟,但其新理念很有特色 特别适于多版本 多文档 多工程并行[22/2024-10-24]
数字翻译 2024 注册机 注册码生成器 内存破解器 附详细用法
数字翻译 2024 注册机 注册码生成器 内存破解器 附详细用法 数字翻译目前还在不断研发 进步中,虽不太成熟,但其新理念很有特色 特别适于 HTML 文档本地化 (面向高精度 超[24/2024-10-24]
数字 Python IDE 2023 注册机 注册码生成器 附详细破解方法
数字 Python IDE 2023 注册机 注册码生成器 附详细破解方法 数字 Python IDE 目前还在不断研发 进步中,虽不太成熟,但其新理念很有特色 特别适于多版本 多文档 多工程并行[22/2024-10-24]
数字翻译 2023 注册机 注册码生成器 内存破解器 附详细用法
数字翻译 2023 注册机 注册码生成器 内存破解器 附详细用法 数字翻译目前还在不断研发 进步中,虽不太成熟,但其新理念很有特色 特别适于 HTML 文档本地化 (面向高精度 超[21/2024-10-24]
CSS3 官方中文文档编制 手册教程 人工翻译 更新日志
CSS3 官方中文文档编制 手册教程 人工翻译 更新日志 CSS3 中文文档编制采用机器辅助 + 全人工翻译,完全采用 数字翻译 的文档翻译流程进行汉化 (未采用任何第 3 方工具),[1592/2022-07-31]
CSS3 官方中文文档编制 手册教程 帮助文件 人工翻译
CSS3 官方中文文档编制 手册教程 帮助文件 人工翻译 CSS3 中文文档编制采用机器辅助 + 全人工翻译,完全采用 数字翻译 的文档翻译流程进行汉化 (未采用任何第 3 方工具),[1725/2022-07-31]
SolidWorks 2020 非对称Conic Rho圆角 抽壳出现模型穿刺
SolidWorks 2020 非对称Conic Rho圆角 抽壳出现模型穿刺 标准对称圆角最常用,但有时偶尔也会用到非对称圆角。 特别是模具、五金、电子、手饰、汽车、家具、玩具、等对圆[1417/2022-05-25]
NumPy 1.22 官方中文文档编制 手册帮助 更新日志
NumPy 1.22 官方中文文档编制 手册帮助 更新日志 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 NumPy 1.22。 NumPy 1.22 中文文档编制采用[997/2022-05-22]
NumPy 1.22 官方中文文档编制 手册帮助 全人工翻译
NumPy 1.22 官方中文文档编制 手册帮助 全人工翻译 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 NumPy 1.22。 NumPy 1.22 中文文档编制采[1167/2022-05-22]
Pillow 9.1.1 官方中文文档编制 手册帮助 更新日志
Pillow 9.1.1 官方中文文档编制 手册帮助 更新日志 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 Pillow 9.1.1。 Pillow 9.1.1 中文文档编[1048/2022-05-22]
Pillow 9.1.1 官方中文文档编制 手册帮助 全人工翻译
Pillow 9.1.1 官方中文文档编制 手册帮助 全人工翻译 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 Pillow 9.1.1。 Pillow 9.1.1 中文文档[1001/2022-05-22]
PyMuPDF 1.19.6 官方中文文档编制 手册帮助 更新日志
PyMuPDF 1.19.6 官方中文文档编制 手册帮助 更新日志 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 PyMuPDF 1.19.6。 PyMuPDF 1.19.6 中文[1619/2022-05-22]
PyMuPDF 1.19.6 官方中文文档编制 手册帮助 全人工翻译
PyMuPDF 1.19.6 官方中文文档编制 手册帮助 全人工翻译 以后不再上传 en-US 官方原版文档编制,目前上传的最新 zh-CN 人工翻译版本为 PyMuPDF 1.19.6。 PyMuPDF 1.19.6 中[1480/2022-05-22]

Archiver|Sitemap|小黑屋|德云社区   

GMT+8, 2024-11-23 07:30 , Processed in 0.037316 second(s), 27 queries .

工业和信息化部: 粤ICP备14079481号-2

技术支持 乐数软件     版权所有 © 2014-2021 德云社区    

返回顶部