python html5 bootstrap 视频教程

德云社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4099|回复: 0

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

[复制链接]

195

主题

220

帖子

1050

积分

工程师

Rank: 5Rank: 5

金钱
620
金币
6
威望
0
贡献
0
发表于 2016-7-8 23:17:25 | 显示全部楼层 |阅读模式
AI人工智能 语音助理 人工翻译 教程
在 Ubuntu Server 14.04 下安装 ImageMagick 的 PHP5 imagick-3.4.3RC1 扩展

ImageMagick 是一个免费开源、用于编辑、创建、合成图像的工具。ImageMagick 可读取、转换、写入多种格式图像。包括:图像切割、颜色替换、各种效果的应用,图像旋转、组合、文本、直线、多边形、椭圆、曲线、附加到图像伸展旋转、等等。


ImageMagick 遵守 GPL 许可协议,是一个免费工具:完全开放源码,可自由使用、复制、修改、发布;它可运行于大多数操作系统。ImageMagick 几乎可在任何非专有操作系统上编译,无论是 32 位还是 64 位 CPU,包括:Linux、Windows 95/98/ME/NT 4.0/2000/XP、Windows 2003、Windows 7、Windows 8、Macintosh (MacOS 9 /10)、VMS 和 OS/2。ImageMagick 的大多数功能的用法都是使用命令行。


ImageMagick 是一套功能强大、稳定且开源的工具集、开发包。可用来读、写和处理超过 200 多种格式的图片文件,包括流行的 TIF、JPG、JPEG、GIF、 PNG、PDF 以及 PhotoCD 等格式。


ImageMagick 可根据 Web 应用程序的需要动态生成图片, 可对一个(或一组)图片进行缩放、旋转、锐化、减色或增加特效等操作,并将操作结果以相同格式或其它格式保存;对图片的操作,即可通过命令行进行,也可通过 C/C++、Perl、Java、PHP、Python 或 Ruby 编程完成。同时 ImageMagick 还提供了一个高质量的 2D 工具包,部分支持 SVG。ImageMagick 的主要精力集中在性能,减少 Bug 以及提供稳定的 API 和 ABI 上。


Ashampoo_Snap_2016.07.09_00h21m11s_003_.jpg

01、安装 pecl 扩展库
  1. root:~# apt-get install php-pear
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6.   php5-cli php5-readline
  7. The following NEW packages will be installed:
  8.   php-pear php5-cli php5-readline
  9. 0 upgraded, 3 newly installed, 0 to remove and 151 not upgraded.
  10. Need to get 0 B/2,441 kB of archives.
  11. After this operation, 11.5 MB of additional disk space will be used.
  12. Do you want to continue? [Y/n] y
  13. Selecting previously unselected package php5-cli.
  14. (Reading database ... 123974 files and directories currently installed.)
  15. Preparing to unpack .../php5-cli_5.5.9+dfsg-1ubuntu4.17_amd64.deb ...
  16. Unpacking php5-cli (5.5.9+dfsg-1ubuntu4.17) ...
  17. Selecting previously unselected package php5-readline.
  18. Preparing to unpack .../php5-readline_5.5.9+dfsg-1ubuntu4.17_amd64.deb ...
  19. Unpacking php5-readline (5.5.9+dfsg-1ubuntu4.17) ...
  20. Selecting previously unselected package php-pear.
  21. Preparing to unpack .../php-pear_5.5.9+dfsg-1ubuntu4.17_all.deb ...
  22. Unpacking php-pear (5.5.9+dfsg-1ubuntu4.17) ...
  23. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  24. Processing triggers for php5-fpm (5.5.9+dfsg-1ubuntu4.17) ...
  25. php5-fpm stop/waiting
  26. php5-fpm start/running, process 21983
  27. Setting up php5-cli (5.5.9+dfsg-1ubuntu4.17) ...
  28. update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
  29. php5_invoke: Enable module mysql for cli SAPI
  30. php5_invoke: Enable module snmp for cli SAPI
  31. php5_invoke: Enable module xmlrpc for cli SAPI
  32. php5_invoke: Enable module ming for cli SAPI
  33. php5_invoke: Enable module curl for cli SAPI
  34. php5_invoke: Enable module apcu for cli SAPI
  35. php5_invoke: Enable module recode for cli SAPI
  36. php5_invoke: Enable module intl for cli SAPI
  37. php5_invoke: Enable module json for cli SAPI
  38. php5_invoke: Enable module sqlite3 for cli SAPI
  39. php5_invoke: Enable module imagick for cli SAPI
  40. php5_invoke: Enable module pdo_sqlite for cli SAPI
  41. php5_invoke: Enable module mysqli for cli SAPI
  42. php5_invoke: Enable module xsl for cli SAPI
  43. php5_invoke: Enable module opcache for cli SAPI
  44. php5_invoke: Enable module pdo_mysql for cli SAPI
  45. php5_invoke: Enable module gd for cli SAPI
  46. php5_invoke: Enable module pspell for cli SAPI
  47. php5_invoke: Enable module pdo for cli SAPI
  48. php5_invoke: Enable module tidy for cli SAPI
  49. Setting up php5-readline (5.5.9+dfsg-1ubuntu4.17) ...
  50. php5_invoke: Enable module readline for fpm SAPI
  51. php5_invoke: Enable module readline for cli SAPI
  52. php5_invoke: Enable module readline for cgi SAPI
  53. Setting up php-pear (5.5.9+dfsg-1ubuntu4.17) ...
  54. Processing triggers for php5-fpm (5.5.9+dfsg-1ubuntu4.17) ...
  55. php5-fpm stop/waiting
  56. php5-fpm start/running, process 23027
  57. root:~#
复制代码
02、安装开发支持模块
  1. root:~# apt-get install php5-dev  
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6.   pkg-php-tools
  7. Suggested packages:
  8.   dh-make
  9. The following NEW packages will be installed:
  10.   php5-dev pkg-php-tools
  11. 0 upgraded, 2 newly installed, 0 to remove and 151 not upgraded.
  12. Need to get 0 B/378 kB of archives.
  13. After this operation, 3,874 kB of additional disk space will be used.
  14. Do you want to continue? [Y/n] y
  15. Selecting previously unselected package php5-dev.
  16. (Reading database ... 123848 files and directories currently installed.)
  17. Preparing to unpack .../php5-dev_5.5.9+dfsg-1ubuntu4.17_amd64.deb ...
  18. Unpacking php5-dev (5.5.9+dfsg-1ubuntu4.17) ...
  19. Selecting previously unselected package pkg-php-tools.
  20. Preparing to unpack .../pkg-php-tools_1.11_all.deb ...
  21. Unpacking pkg-php-tools (1.11) ...
  22. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  23. Setting up php5-dev (5.5.9+dfsg-1ubuntu4.17) ...
  24. update-alternatives: using /usr/bin/php-config5 to provide /usr/bin/php-config (php-config) in auto mode
  25. update-alternatives: using /usr/bin/phpize5 to provide /usr/bin/phpize (phpize) in auto mode
  26. Setting up pkg-php-tools (1.11) ...
  27. root:~#
复制代码
03、安装 ImageMagick 接口
  1. root:~# apt-get install graphicsmagick-libmagick-dev-compat
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6.   libbz2-dev libexif-dev libexif12 libfreetype6-dev libgraphics-magick-perl
  7.   libgraphicsmagick++1-dev libgraphicsmagick++3 libgraphicsmagick1-dev
  8.   libgraphicsmagick3 libice-dev libjasper-dev libjasper1 libjbig-dev
  9.   libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev liblcms2-2 liblcms2-dev
  10.   liblzma-dev libpng12-0 libpng12-dev libpthread-stubs0-dev libsm-dev libtiff5
  11.   libtiff5-dev libtiffxx5 libwmf-dev libx11-dev libx11-doc libxau-dev
  12.   libxcb1-dev libxdmcp-dev libxext-dev libxml2 libxml2-dev x11proto-core-dev
  13.   x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools
  14.   xtrans-dev
  15. Suggested packages:
  16.   graphicsmagick-dbg graphicsmagick libice-doc libjasper-runtime
  17.   liblcms2-utils liblzma-doc libsm-doc libwmf-doc libxcb-doc libxext-doc
  18.   pkg-config
  19. The following NEW packages will be installed:
  20.   graphicsmagick-libmagick-dev-compat libbz2-dev libexif-dev libexif12
  21.   libfreetype6-dev libgraphics-magick-perl libgraphicsmagick++1-dev
  22.   libgraphicsmagick++3 libgraphicsmagick1-dev libgraphicsmagick3 libice-dev
  23.   libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev
  24.   liblcms2-dev liblzma-dev libpng12-dev libpthread-stubs0-dev libsm-dev
  25.   libtiff5-dev libtiffxx5 libwmf-dev libx11-dev libx11-doc libxau-dev
  26.   libxcb1-dev libxdmcp-dev libxext-dev libxml2-dev x11proto-core-dev
  27.   x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools
  28.   xtrans-dev
  29. The following packages will be upgraded:
  30.   libjasper1 liblcms2-2 libpng12-0 libtiff5 libxml2
  31. 5 upgraded, 37 newly installed, 0 to remove and 177 not upgraded.
  32. Need to get 1,204 kB/15.9 MB of archives.
  33. After this operation, 51.7 MB of additional disk space will be used.
  34. Do you want to continue? [Y/n] y
  35. Get:1 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libxml2 amd64 2.9.1+dfsg1-3ubuntu4.8 [573 kB]
  36. Get:2 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libxml2-dev amd64 2.9.1+dfsg1-3ubuntu4.8 [631 kB]
  37. Fetched 1,204 kB in 1s (1,047 kB/s)  
  38. Extracting templates from packages: 100%
  39. (Reading database ... 124205 files and directories currently installed.)
  40. Preparing to unpack .../libpng12-0_1.2.50-1ubuntu2.14.04.2_amd64.deb ...
  41. Unpacking libpng12-0:amd64 (1.2.50-1ubuntu2.14.04.2) over (1.2.50-1ubuntu2) ...
  42. Preparing to unpack .../libxml2_2.9.1+dfsg1-3ubuntu4.8_amd64.deb ...
  43. Unpacking libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.8) over (2.9.1+dfsg1-3ubuntu4.4) ...
  44. Selecting previously unselected package libexif12:amd64.
  45. Preparing to unpack .../libexif12_0.6.21-1ubuntu1_amd64.deb ...
  46. Unpacking libexif12:amd64 (0.6.21-1ubuntu1) ...
  47. Preparing to unpack .../libjasper1_1.900.1-14ubuntu3.3_amd64.deb ...
  48. Unpacking libjasper1:amd64 (1.900.1-14ubuntu3.3) over (1.900.1-14ubuntu3.2) ...
  49. Preparing to unpack .../liblcms2-2_2.5-0ubuntu4.1_amd64.deb ...
  50. Unpacking liblcms2-2:amd64 (2.5-0ubuntu4.1) over (2.5-0ubuntu4) ...
  51. Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.4_amd64.deb ...
  52. Unpacking libtiff5:amd64 (4.0.3-7ubuntu0.4) over (4.0.3-7ubuntu0.3) ...
  53. Selecting previously unselected package libtiffxx5:amd64.
  54. Preparing to unpack .../libtiffxx5_4.0.3-7ubuntu0.4_amd64.deb ...
  55. Unpacking libtiffxx5:amd64 (4.0.3-7ubuntu0.4) ...
  56. Selecting previously unselected package libjbig-dev:amd64.
  57. Preparing to unpack .../libjbig-dev_2.0-2ubuntu4.1_amd64.deb ...
  58. Unpacking libjbig-dev:amd64 (2.0-2ubuntu4.1) ...
  59. Selecting previously unselected package libbz2-dev:amd64.
  60. Preparing to unpack .../libbz2-dev_1.0.6-5_amd64.deb ...
  61. Unpacking libbz2-dev:amd64 (1.0.6-5) ...
  62. Selecting previously unselected package libexif-dev.
  63. Preparing to unpack .../libexif-dev_0.6.21-1ubuntu1_amd64.deb ...
  64. Unpacking libexif-dev (0.6.21-1ubuntu1) ...
  65. Selecting previously unselected package libpng12-dev.
  66. Preparing to unpack .../libpng12-dev_1.2.50-1ubuntu2.14.04.2_amd64.deb ...
  67. Unpacking libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
  68. Selecting previously unselected package libfreetype6-dev.
  69. Preparing to unpack .../libfreetype6-dev_2.5.2-1ubuntu2.5_amd64.deb ...
  70. Unpacking libfreetype6-dev (2.5.2-1ubuntu2.5) ...
  71. Selecting previously unselected package libgraphicsmagick3.
  72. Preparing to unpack .../libgraphicsmagick3_1.3.18-1ubuntu3_amd64.deb ...
  73. Unpacking libgraphicsmagick3 (1.3.18-1ubuntu3) ...
  74. Selecting previously unselected package libgraphics-magick-perl.
  75. Preparing to unpack .../libgraphics-magick-perl_1.3.18-1ubuntu3_amd64.deb ...
  76. Unpacking libgraphics-magick-perl (1.3.18-1ubuntu3) ...
  77. Selecting previously unselected package libgraphicsmagick++3.
  78. Preparing to unpack .../libgraphicsmagick++3_1.3.18-1ubuntu3_amd64.deb ...
  79. Unpacking libgraphicsmagick++3 (1.3.18-1ubuntu3) ...
  80. Selecting previously unselected package libjpeg-turbo8-dev:amd64.
  81. Preparing to unpack .../libjpeg-turbo8-dev_1.3.0-0ubuntu2_amd64.deb ...
  82. Unpacking libjpeg-turbo8-dev:amd64 (1.3.0-0ubuntu2) ...
  83. Selecting previously unselected package libjpeg8-dev:amd64.
  84. Preparing to unpack .../libjpeg8-dev_8c-2ubuntu8_amd64.deb ...
  85. Unpacking libjpeg8-dev:amd64 (8c-2ubuntu8) ...
  86. Selecting previously unselected package libjpeg-dev:amd64.
  87. Preparing to unpack .../libjpeg-dev_8c-2ubuntu8_amd64.deb ...
  88. Unpacking libjpeg-dev:amd64 (8c-2ubuntu8) ...
  89. Selecting previously unselected package libjasper-dev.
  90. Preparing to unpack .../libjasper-dev_1.900.1-14ubuntu3.3_amd64.deb ...
  91. Unpacking libjasper-dev (1.900.1-14ubuntu3.3) ...
  92. Selecting previously unselected package liblcms2-dev:amd64.
  93. Preparing to unpack .../liblcms2-dev_2.5-0ubuntu4.1_amd64.deb ...
  94. Unpacking liblcms2-dev:amd64 (2.5-0ubuntu4.1) ...
  95. Selecting previously unselected package xorg-sgml-doctools.
  96. Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
  97. Unpacking xorg-sgml-doctools (1:1.11-1) ...
  98. Selecting previously unselected package x11proto-core-dev.
  99. Preparing to unpack .../x11proto-core-dev_7.0.26-1~ubuntu2_all.deb ...
  100. Unpacking x11proto-core-dev (7.0.26-1~ubuntu2) ...
  101. Selecting previously unselected package libxau-dev:amd64.
  102. Preparing to unpack .../libxau-dev_1%3a1.0.8-1_amd64.deb ...
  103. Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
  104. Selecting previously unselected package libxdmcp-dev:amd64.
  105. Preparing to unpack .../libxdmcp-dev_1%3a1.1.1-1_amd64.deb ...
  106. Unpacking libxdmcp-dev:amd64 (1:1.1.1-1) ...
  107. Selecting previously unselected package x11proto-input-dev.
  108. Preparing to unpack .../x11proto-input-dev_2.3-1_all.deb ...
  109. Unpacking x11proto-input-dev (2.3-1) ...
  110. Selecting previously unselected package x11proto-kb-dev.
  111. Preparing to unpack .../x11proto-kb-dev_1.0.6-2_all.deb ...
  112. Unpacking x11proto-kb-dev (1.0.6-2) ...
  113. Selecting previously unselected package xtrans-dev.
  114. Preparing to unpack .../xtrans-dev_1.3.5-1~ubuntu14.04.1_all.deb ...
  115. Unpacking xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
  116. Selecting previously unselected package libpthread-stubs0-dev:amd64.
  117. Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
  118. Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
  119. Selecting previously unselected package libxcb1-dev:amd64.
  120. Preparing to unpack .../libxcb1-dev_1.10-2ubuntu1_amd64.deb ...
  121. Unpacking libxcb1-dev:amd64 (1.10-2ubuntu1) ...
  122. Selecting previously unselected package libx11-dev:amd64.
  123. Preparing to unpack .../libx11-dev_2%3a1.6.2-1ubuntu2_amd64.deb ...
  124. Unpacking libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...
  125. Selecting previously unselected package libwmf-dev.
  126. Preparing to unpack .../libwmf-dev_0.2.8.4-10.3ubuntu1.14.04.1_amd64.deb ...
  127. Unpacking libwmf-dev (0.2.8.4-10.3ubuntu1.14.04.1) ...
  128. Selecting previously unselected package libice-dev:amd64.
  129. Preparing to unpack .../libice-dev_2%3a1.0.8-2_amd64.deb ...
  130. Unpacking libice-dev:amd64 (2:1.0.8-2) ...
  131. Selecting previously unselected package libsm-dev:amd64.
  132. Preparing to unpack .../libsm-dev_2%3a1.2.1-2_amd64.deb ...
  133. Unpacking libsm-dev:amd64 (2:1.2.1-2) ...
  134. Selecting previously unselected package x11proto-xext-dev.
  135. Preparing to unpack .../x11proto-xext-dev_7.3.0-1_all.deb ...
  136. Unpacking x11proto-xext-dev (7.3.0-1) ...
  137. Selecting previously unselected package libxext-dev:amd64.
  138. Preparing to unpack .../libxext-dev_2%3a1.3.2-1ubuntu0.0.14.04.1_amd64.deb ...
  139. Unpacking libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...
  140. Selecting previously unselected package libxml2-dev:amd64.
  141. Preparing to unpack .../libxml2-dev_2.9.1+dfsg1-3ubuntu4.8_amd64.deb ...
  142. Unpacking libxml2-dev:amd64 (2.9.1+dfsg1-3ubuntu4.8) ...
  143. Selecting previously unselected package liblzma-dev:amd64.
  144. Preparing to unpack .../liblzma-dev_5.1.1alpha+20120614-2ubuntu2_amd64.deb ...
  145. Unpacking liblzma-dev:amd64 (5.1.1alpha+20120614-2ubuntu2) ...
  146. Selecting previously unselected package libtiff5-dev:amd64.
  147. Preparing to unpack .../libtiff5-dev_4.0.3-7ubuntu0.4_amd64.deb ...
  148. Unpacking libtiff5-dev:amd64 (4.0.3-7ubuntu0.4) ...
  149. Selecting previously unselected package libgraphicsmagick1-dev.
  150. Preparing to unpack .../libgraphicsmagick1-dev_1.3.18-1ubuntu3_amd64.deb ...
  151. Unpacking libgraphicsmagick1-dev (1.3.18-1ubuntu3) ...
  152. Selecting previously unselected package libgraphicsmagick++1-dev.
  153. Preparing to unpack .../libgraphicsmagick++1-dev_1.3.18-1ubuntu3_amd64.deb ...
  154. Unpacking libgraphicsmagick++1-dev (1.3.18-1ubuntu3) ...
  155. Selecting previously unselected package libx11-doc.
  156. Preparing to unpack .../libx11-doc_2%3a1.6.2-1ubuntu2_all.deb ...
  157. Unpacking libx11-doc (2:1.6.2-1ubuntu2) ...
  158. Selecting previously unselected package graphicsmagick-libmagick-dev-compat.
  159. Preparing to unpack .../graphicsmagick-libmagick-dev-compat_1.3.18-1ubuntu3_all.deb ...
  160. Unpacking graphicsmagick-libmagick-dev-compat (1.3.18-1ubuntu3) ...
  161. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  162. Setting up libpng12-0:amd64 (1.2.50-1ubuntu2.14.04.2) ...
  163. Setting up libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.8) ...
  164. Setting up libexif12:amd64 (0.6.21-1ubuntu1) ...
  165. Setting up libjasper1:amd64 (1.900.1-14ubuntu3.3) ...
  166. Setting up liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
  167. Setting up libtiff5:amd64 (4.0.3-7ubuntu0.4) ...
  168. Setting up libtiffxx5:amd64 (4.0.3-7ubuntu0.4) ...
  169. Setting up libjbig-dev:amd64 (2.0-2ubuntu4.1) ...
  170. Setting up libbz2-dev:amd64 (1.0.6-5) ...
  171. Setting up libexif-dev (0.6.21-1ubuntu1) ...
  172. Setting up libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
  173. Setting up libfreetype6-dev (2.5.2-1ubuntu2.5) ...
  174. Setting up libgraphicsmagick3 (1.3.18-1ubuntu3) ...
  175. Setting up libgraphics-magick-perl (1.3.18-1ubuntu3) ...
  176. Setting up libgraphicsmagick++3 (1.3.18-1ubuntu3) ...
  177. Setting up libjpeg-turbo8-dev:amd64 (1.3.0-0ubuntu2) ...
  178. Setting up libjpeg8-dev:amd64 (8c-2ubuntu8) ...
  179. Setting up libjpeg-dev:amd64 (8c-2ubuntu8) ...
  180. Setting up libjasper-dev (1.900.1-14ubuntu3.3) ...
  181. Setting up liblcms2-dev:amd64 (2.5-0ubuntu4.1) ...
  182. Setting up xorg-sgml-doctools (1:1.11-1) ...
  183. Setting up x11proto-core-dev (7.0.26-1~ubuntu2) ...
  184. Setting up libxau-dev:amd64 (1:1.0.8-1) ...
  185. Setting up libxdmcp-dev:amd64 (1:1.1.1-1) ...
  186. Setting up x11proto-input-dev (2.3-1) ...
  187. Setting up x11proto-kb-dev (1.0.6-2) ...
  188. Setting up xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
  189. Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
  190. Setting up libxcb1-dev:amd64 (1.10-2ubuntu1) ...
  191. Setting up libx11-dev:amd64 (2:1.6.2-1ubuntu2) ...
  192. Setting up libwmf-dev (0.2.8.4-10.3ubuntu1.14.04.1) ...
  193. Setting up libice-dev:amd64 (2:1.0.8-2) ...
  194. Setting up libsm-dev:amd64 (2:1.2.1-2) ...
  195. Setting up x11proto-xext-dev (7.3.0-1) ...
  196. Setting up libxext-dev:amd64 (2:1.3.2-1ubuntu0.0.14.04.1) ...
  197. Setting up libxml2-dev:amd64 (2.9.1+dfsg1-3ubuntu4.8) ...
  198. Setting up liblzma-dev:amd64 (5.1.1alpha+20120614-2ubuntu2) ...
  199. Setting up libtiff5-dev:amd64 (4.0.3-7ubuntu0.4) ...
  200. Setting up libgraphicsmagick1-dev (1.3.18-1ubuntu3) ...
  201. Setting up libgraphicsmagick++1-dev (1.3.18-1ubuntu3) ...
  202. Setting up libx11-doc (2:1.6.2-1ubuntu2) ...
  203. Setting up graphicsmagick-libmagick-dev-compat (1.3.18-1ubuntu3) ...
  204. Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
  205. root:~#
复制代码
04、安装 ImageMagick 开发包
  1. root:~# apt-get install libmagickwand-dev libmagickcore-dev
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following packages were automatically installed and are no longer required:
  6.   libgraphics-magick-perl libgraphicsmagick++1-dev libgraphicsmagick++3
  7.   libgraphicsmagick1-dev libgraphicsmagick3
  8. Use 'apt-get autoremove' to remove them.
  9. The following extra packages will be installed:
  10.   gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-rsvg-2.0 libcairo-gobject2
  11.   libcairo-script-interpreter2 libcairo2-dev libdjvulibre-dev libelfg0
  12.   libexpat1 libexpat1-dev libfontconfig1-dev libgdk-pixbuf2.0-dev
  13.   libglib2.0-bin libglib2.0-dev libgraphviz-dev libilmbase-dev liblqr-1-0-dev
  14.   liblzo2-2 libmagickcore5 libmagickcore5-extra libmagickwand5 libopenexr-dev
  15.   libpcre3 libpcre3-dev libpcrecpp0 libpixman-1-0 libpixman-1-dev librsvg2-dev
  16.   libxcb-render0-dev libxcb-shm0-dev libxdot4 libxrender-dev libxt-dev
  17.   pkg-config x11proto-render-dev
  18. Suggested packages:
  19.   libcairo2-doc libglib2.0-doc librsvg2-doc libxt-doc
  20. The following packages will be REMOVED:
  21.   graphicsmagick-libmagick-dev-compat
  22. The following NEW packages will be installed:
  23.   gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-rsvg-2.0 libcairo-gobject2
  24.   libcairo-script-interpreter2 libcairo2-dev libdjvulibre-dev libelfg0
  25.   libexpat1-dev libfontconfig1-dev libgdk-pixbuf2.0-dev libglib2.0-bin
  26.   libglib2.0-dev libgraphviz-dev libilmbase-dev liblqr-1-0-dev liblzo2-2
  27.   libmagickcore-dev libmagickwand-dev libopenexr-dev libpcre3-dev libpcrecpp0
  28.   libpixman-1-dev librsvg2-dev libxcb-render0-dev libxcb-shm0-dev libxdot4
  29.   libxrender-dev libxt-dev pkg-config x11proto-render-dev
  30. The following packages will be upgraded:
  31.   libexpat1 libmagickcore5 libmagickcore5-extra libmagickwand5 libpcre3
  32.   libpixman-1-0
  33. 6 upgraded, 31 newly installed, 1 to remove and 171 not upgraded.
  34. Need to get 10.4 MB of archives.
  35. After this operation, 41.2 MB of additional disk space will be used.
  36. Do you want to continue? [Y/n] y
  37. Get:1 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libpcre3 amd64 1:8.31-2ubuntu2.3 [144 kB]
  38. Get:2 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libexpat1 amd64 2.1.0-4ubuntu1.3 [71.1 kB]
  39. Get:3 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libcairo-gobject2 amd64 1.13.0~20140204-0ubuntu1.1 [17.2 kB]
  40. Get:4 http://mirrors.aliyun.com/ubuntu/ trusty-security/main liblzo2-2 amd64 2.06-1.2ubuntu1.1 [46.1 kB]
  41. Get:5 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libcairo-script-interpreter2 amd64 1.13.0~20140204-0ubuntu1.1 [53.2 kB]
  42. Get:6 http://mirrors.aliyun.com/ubuntu/ trusty/main libelfg0 amd64 0.8.13-5 [37.6 kB]
  43. Get:7 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmagickwand5 amd64 8:6.7.7.10-6ubuntu3.1 [267 kB]
  44. Get:8 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmagickcore5-extra amd64 8:6.7.7.10-6ubuntu3.1 [57.8 kB]
  45. Get:9 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmagickcore5 amd64 8:6.7.7.10-6ubuntu3.1 [1,474 kB]
  46. Get:10 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libpcrecpp0 amd64 1:8.31-2ubuntu2.3 [14.5 kB]
  47. Get:11 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libpixman-1-0 amd64 0.30.2-2ubuntu1.1 [225 kB]
  48. Get:12 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main gir1.2-freedesktop amd64 1.40.0-1ubuntu0.2 [5,652 B]
  49. Get:13 http://mirrors.aliyun.com/ubuntu/ trusty-security/main gir1.2-gdkpixbuf-2.0 amd64 2.30.7-0ubuntu1.2 [7,964 B]
  50. Get:14 http://mirrors.aliyun.com/ubuntu/ trusty/main gir1.2-rsvg-2.0 amd64 2.40.2-1 [3,550 B]
  51. Get:15 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libexpat1-dev amd64 2.1.0-4ubuntu1.3 [115 kB]
  52. Get:16 http://mirrors.aliyun.com/ubuntu/ trusty/main pkg-config amd64 0.26-1ubuntu4 [40.9 kB]
  53. Get:17 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libfontconfig1-dev amd64 2.11.0-0ubuntu4.1 [664 kB]
  54. Get:18 http://mirrors.aliyun.com/ubuntu/ trusty/main x11proto-render-dev all 2:0.11.1-2 [20.1 kB]
  55. Get:19 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libxrender-dev amd64 1:0.9.8-1build0.14.04.1 [23.8 kB]
  56. Get:20 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libpixman-1-dev amd64 0.30.2-2ubuntu1.1 [240 kB]
  57. Get:21 http://mirrors.aliyun.com/ubuntu/ trusty/main libxcb-render0-dev amd64 1.10-2ubuntu1 [16.7 kB]
  58. Get:22 http://mirrors.aliyun.com/ubuntu/ trusty/main libxcb-shm0-dev amd64 1.10-2ubuntu1 [6,868 B]
  59. Get:23 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libglib2.0-bin amd64 2.40.2-0ubuntu1 [34.9 kB]
  60. Get:24 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libpcre3-dev amd64 1:8.31-2ubuntu2.3 [237 kB]
  61. Get:25 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libglib2.0-dev amd64 2.40.2-0ubuntu1 [1,322 kB]
  62. Get:26 http://mirrors.aliyun.com/ubuntu/ trusty-updates/main libcairo2-dev amd64 1.13.0~20140204-0ubuntu1.1 [574 kB]
  63. Get:27 http://mirrors.aliyun.com/ubuntu/ trusty/main libdjvulibre-dev amd64 3.5.25.4-3 [2,363 kB]
  64. Get:28 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libgdk-pixbuf2.0-dev amd64 2.30.7-0ubuntu1.2 [43.0 kB]
  65. Get:29 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libxdot4 amd64 2.36.0-0ubuntu3.1 [19.4 kB]
  66. Get:30 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libgraphviz-dev amd64 2.36.0-0ubuntu3.1 [60.9 kB]
  67. Get:31 http://mirrors.aliyun.com/ubuntu/ trusty/main libilmbase-dev amd64 1.0.1-6ubuntu1 [112 kB]
  68. Get:32 http://mirrors.aliyun.com/ubuntu/ trusty/main liblqr-1-0-dev amd64 0.4.1-2ubuntu1 [134 kB]
  69. Get:33 http://mirrors.aliyun.com/ubuntu/ trusty/main libopenexr-dev amd64 1.6.1-7ubuntu1 [233 kB]
  70. Get:34 http://mirrors.aliyun.com/ubuntu/ trusty/main librsvg2-dev amd64 2.40.2-1 [97.6 kB]
  71. Get:35 http://mirrors.aliyun.com/ubuntu/ trusty/main libxt-dev amd64 1:1.1.4-1 [455 kB]
  72. Get:36 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmagickcore-dev amd64 8:6.7.7.10-6ubuntu3.1 [906 kB]
  73. Get:37 http://mirrors.aliyun.com/ubuntu/ trusty-security/main libmagickwand-dev amd64 8:6.7.7.10-6ubuntu3.1 [272 kB]
  74. Fetched 10.4 MB in 7s (1,393 kB/s)                                             
  75. Extracting templates from packages: 100%
  76. (Reading database ... 126353 files and directories currently installed.)
  77. Removing graphicsmagick-libmagick-dev-compat (1.3.18-1ubuntu3) ...
  78. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  79. (Reading database ... 126332 files and directories currently installed.)
  80. Preparing to unpack .../libpcre3_1%3a8.31-2ubuntu2.3_amd64.deb ...
  81. Unpacking libpcre3:amd64 (1:8.31-2ubuntu2.3) over (1:8.31-2ubuntu2.1) ...
  82. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  83. Setting up libpcre3:amd64 (1:8.31-2ubuntu2.3) ...
  84. Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
  85. (Reading database ... 126332 files and directories currently installed.)
  86. Preparing to unpack .../libexpat1_2.1.0-4ubuntu1.3_amd64.deb ...
  87. Unpacking libexpat1:amd64 (2.1.0-4ubuntu1.3) over (2.1.0-4ubuntu1.1) ...
  88. Selecting previously unselected package libcairo-gobject2:amd64.
  89. Preparing to unpack .../libcairo-gobject2_1.13.0~20140204-0ubuntu1.1_amd64.deb ...
  90. Unpacking libcairo-gobject2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
  91. Selecting previously unselected package liblzo2-2:amd64.
  92. Preparing to unpack .../liblzo2-2_2.06-1.2ubuntu1.1_amd64.deb ...
  93. Unpacking liblzo2-2:amd64 (2.06-1.2ubuntu1.1) ...
  94. Selecting previously unselected package libcairo-script-interpreter2:amd64.
  95. Preparing to unpack .../libcairo-script-interpreter2_1.13.0~20140204-0ubuntu1.1_amd64.deb ...
  96. Unpacking libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
  97. Selecting previously unselected package libelfg0:amd64.
  98. Preparing to unpack .../libelfg0_0.8.13-5_amd64.deb ...
  99. Unpacking libelfg0:amd64 (0.8.13-5) ...
  100. Preparing to unpack .../libmagickwand5_8%3a6.7.7.10-6ubuntu3.1_amd64.deb ...
  101. Unpacking libmagickwand5:amd64 (8:6.7.7.10-6ubuntu3.1) over (8:6.7.7.10-6ubuntu3) ...
  102. Preparing to unpack .../libmagickcore5-extra_8%3a6.7.7.10-6ubuntu3.1_amd64.deb ...
  103. Unpacking libmagickcore5-extra:amd64 (8:6.7.7.10-6ubuntu3.1) over (8:6.7.7.10-6ubuntu3) ...
  104. Preparing to unpack .../libmagickcore5_8%3a6.7.7.10-6ubuntu3.1_amd64.deb ...
  105. Unpacking libmagickcore5:amd64 (8:6.7.7.10-6ubuntu3.1) over (8:6.7.7.10-6ubuntu3) ...
  106. Selecting previously unselected package libpcrecpp0:amd64.
  107. Preparing to unpack .../libpcrecpp0_1%3a8.31-2ubuntu2.3_amd64.deb ...
  108. Unpacking libpcrecpp0:amd64 (1:8.31-2ubuntu2.3) ...
  109. Preparing to unpack .../libpixman-1-0_0.30.2-2ubuntu1.1_amd64.deb ...
  110. Unpacking libpixman-1-0:amd64 (0.30.2-2ubuntu1.1) over (0.30.2-2ubuntu1) ...
  111. Selecting previously unselected package gir1.2-freedesktop.
  112. Preparing to unpack .../gir1.2-freedesktop_1.40.0-1ubuntu0.2_amd64.deb ...
  113. Unpacking gir1.2-freedesktop (1.40.0-1ubuntu0.2) ...
  114. Selecting previously unselected package gir1.2-gdkpixbuf-2.0.
  115. Preparing to unpack .../gir1.2-gdkpixbuf-2.0_2.30.7-0ubuntu1.2_amd64.deb ...
  116. Unpacking gir1.2-gdkpixbuf-2.0 (2.30.7-0ubuntu1.2) ...
  117. Selecting previously unselected package gir1.2-rsvg-2.0.
  118. Preparing to unpack .../gir1.2-rsvg-2.0_2.40.2-1_amd64.deb ...
  119. Unpacking gir1.2-rsvg-2.0 (2.40.2-1) ...
  120. Selecting previously unselected package libexpat1-dev:amd64.
  121. Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1.3_amd64.deb ...
  122. Unpacking libexpat1-dev:amd64 (2.1.0-4ubuntu1.3) ...
  123. Selecting previously unselected package pkg-config.
  124. Preparing to unpack .../pkg-config_0.26-1ubuntu4_amd64.deb ...
  125. Unpacking pkg-config (0.26-1ubuntu4) ...
  126. Selecting previously unselected package libfontconfig1-dev.
  127. Preparing to unpack .../libfontconfig1-dev_2.11.0-0ubuntu4.1_amd64.deb ...
  128. Unpacking libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
  129. Selecting previously unselected package x11proto-render-dev.
  130. Preparing to unpack .../x11proto-render-dev_2%3a0.11.1-2_all.deb ...
  131. Unpacking x11proto-render-dev (2:0.11.1-2) ...
  132. Selecting previously unselected package libxrender-dev:amd64.
  133. Preparing to unpack .../libxrender-dev_1%3a0.9.8-1build0.14.04.1_amd64.deb ...
  134. Unpacking libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...
  135. Selecting previously unselected package libpixman-1-dev.
  136. Preparing to unpack .../libpixman-1-dev_0.30.2-2ubuntu1.1_amd64.deb ...
  137. Unpacking libpixman-1-dev (0.30.2-2ubuntu1.1) ...
  138. Selecting previously unselected package libxcb-render0-dev:amd64.
  139. Preparing to unpack .../libxcb-render0-dev_1.10-2ubuntu1_amd64.deb ...
  140. Unpacking libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...
  141. Selecting previously unselected package libxcb-shm0-dev:amd64.
  142. Preparing to unpack .../libxcb-shm0-dev_1.10-2ubuntu1_amd64.deb ...
  143. Unpacking libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...
  144. Selecting previously unselected package libglib2.0-bin.
  145. Preparing to unpack .../libglib2.0-bin_2.40.2-0ubuntu1_amd64.deb ...
  146. Unpacking libglib2.0-bin (2.40.2-0ubuntu1) ...
  147. Selecting previously unselected package libpcre3-dev:amd64.
  148. Preparing to unpack .../libpcre3-dev_1%3a8.31-2ubuntu2.3_amd64.deb ...
  149. Unpacking libpcre3-dev:amd64 (1:8.31-2ubuntu2.3) ...
  150. Selecting previously unselected package libglib2.0-dev.
  151. Preparing to unpack .../libglib2.0-dev_2.40.2-0ubuntu1_amd64.deb ...
  152. Unpacking libglib2.0-dev (2.40.2-0ubuntu1) ...
  153. Selecting previously unselected package libcairo2-dev.
  154. Preparing to unpack .../libcairo2-dev_1.13.0~20140204-0ubuntu1.1_amd64.deb ...
  155. Unpacking libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...
  156. Selecting previously unselected package libdjvulibre-dev:amd64.
  157. Preparing to unpack .../libdjvulibre-dev_3.5.25.4-3_amd64.deb ...
  158. Unpacking libdjvulibre-dev:amd64 (3.5.25.4-3) ...
  159. Selecting previously unselected package libgdk-pixbuf2.0-dev.
  160. Preparing to unpack .../libgdk-pixbuf2.0-dev_2.30.7-0ubuntu1.2_amd64.deb ...
  161. Unpacking libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...
  162. Selecting previously unselected package libxdot4.
  163. Preparing to unpack .../libxdot4_2.36.0-0ubuntu3.1_amd64.deb ...
  164. Unpacking libxdot4 (2.36.0-0ubuntu3.1) ...
  165. Selecting previously unselected package libgraphviz-dev.
  166. Preparing to unpack .../libgraphviz-dev_2.36.0-0ubuntu3.1_amd64.deb ...
  167. Unpacking libgraphviz-dev (2.36.0-0ubuntu3.1) ...
  168. Selecting previously unselected package libilmbase-dev.
  169. Preparing to unpack .../libilmbase-dev_1.0.1-6ubuntu1_amd64.deb ...
  170. Unpacking libilmbase-dev (1.0.1-6ubuntu1) ...
  171. Selecting previously unselected package liblqr-1-0-dev.
  172. Preparing to unpack .../liblqr-1-0-dev_0.4.1-2ubuntu1_amd64.deb ...
  173. Unpacking liblqr-1-0-dev (0.4.1-2ubuntu1) ...
  174. Selecting previously unselected package libopenexr-dev.
  175. Preparing to unpack .../libopenexr-dev_1.6.1-7ubuntu1_amd64.deb ...
  176. Unpacking libopenexr-dev (1.6.1-7ubuntu1) ...
  177. Selecting previously unselected package librsvg2-dev.
  178. Preparing to unpack .../librsvg2-dev_2.40.2-1_amd64.deb ...
  179. Unpacking librsvg2-dev (2.40.2-1) ...
  180. Selecting previously unselected package libxt-dev:amd64.
  181. Preparing to unpack .../libxt-dev_1%3a1.1.4-1_amd64.deb ...
  182. Unpacking libxt-dev:amd64 (1:1.1.4-1) ...
  183. Selecting previously unselected package libmagickcore-dev.
  184. Preparing to unpack .../libmagickcore-dev_8%3a6.7.7.10-6ubuntu3.1_amd64.deb ...
  185. Unpacking libmagickcore-dev (8:6.7.7.10-6ubuntu3.1) ...
  186. Selecting previously unselected package libmagickwand-dev.
  187. Preparing to unpack .../libmagickwand-dev_8%3a6.7.7.10-6ubuntu3.1_amd64.deb ...
  188. Unpacking libmagickwand-dev (8:6.7.7.10-6ubuntu3.1) ...
  189. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  190. Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
  191. No schema files found: doing nothing.
  192. Setting up libexpat1:amd64 (2.1.0-4ubuntu1.3) ...
  193. Setting up libcairo-gobject2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
  194. Setting up liblzo2-2:amd64 (2.06-1.2ubuntu1.1) ...
  195. Setting up libcairo-script-interpreter2:amd64 (1.13.0~20140204-0ubuntu1.1) ...
  196. Setting up libelfg0:amd64 (0.8.13-5) ...
  197. Setting up libmagickcore5:amd64 (8:6.7.7.10-6ubuntu3.1) ...
  198. Setting up libmagickwand5:amd64 (8:6.7.7.10-6ubuntu3.1) ...
  199. Setting up libmagickcore5-extra:amd64 (8:6.7.7.10-6ubuntu3.1) ...
  200. Setting up libpcrecpp0:amd64 (1:8.31-2ubuntu2.3) ...
  201. Setting up libpixman-1-0:amd64 (0.30.2-2ubuntu1.1) ...
  202. Setting up gir1.2-freedesktop (1.40.0-1ubuntu0.2) ...
  203. Setting up gir1.2-gdkpixbuf-2.0 (2.30.7-0ubuntu1.2) ...
  204. Setting up gir1.2-rsvg-2.0 (2.40.2-1) ...
  205. Setting up libexpat1-dev:amd64 (2.1.0-4ubuntu1.3) ...
  206. Setting up pkg-config (0.26-1ubuntu4) ...
  207. Setting up libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
  208. Setting up x11proto-render-dev (2:0.11.1-2) ...
  209. Setting up libxrender-dev:amd64 (1:0.9.8-1build0.14.04.1) ...
  210. Setting up libpixman-1-dev (0.30.2-2ubuntu1.1) ...
  211. Setting up libxcb-render0-dev:amd64 (1.10-2ubuntu1) ...
  212. Setting up libxcb-shm0-dev:amd64 (1.10-2ubuntu1) ...
  213. Setting up libglib2.0-bin (2.40.2-0ubuntu1) ...
  214. Setting up libpcre3-dev:amd64 (1:8.31-2ubuntu2.3) ...
  215. Setting up libglib2.0-dev (2.40.2-0ubuntu1) ...
  216. Setting up libcairo2-dev (1.13.0~20140204-0ubuntu1.1) ...
  217. Setting up libdjvulibre-dev:amd64 (3.5.25.4-3) ...
  218. Setting up libgdk-pixbuf2.0-dev (2.30.7-0ubuntu1.2) ...
  219. Setting up libxdot4 (2.36.0-0ubuntu3.1) ...
  220. Setting up libgraphviz-dev (2.36.0-0ubuntu3.1) ...
  221. Setting up libilmbase-dev (1.0.1-6ubuntu1) ...
  222. Setting up liblqr-1-0-dev (0.4.1-2ubuntu1) ...
  223. Setting up libopenexr-dev (1.6.1-7ubuntu1) ...
  224. Setting up librsvg2-dev (2.40.2-1) ...
  225. Setting up libxt-dev:amd64 (1:1.1.4-1) ...
  226. Setting up libmagickcore-dev (8:6.7.7.10-6ubuntu3.1) ...
  227. Setting up libmagickwand-dev (8:6.7.7.10-6ubuntu3.1) ...
  228. Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
  229. root:~#
复制代码
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. <span style=" font-family:'Consolas'; font-size:10pt;">php -m | grep imagick</span>
  5. shutdown -r +1
复制代码
08、测试
         转到网站根目录,vi ./info.php,添加以下代码:
  1. <?php
  2.      phpinfo ();
  3. ?>
复制代码
       在浏览器中访问探针文件 (譬如:http://www.digitser.cn/info.php) --> 正常的话,会出现上图所示 imagick 相关信息


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

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

AI人工智能 语音助理 人工翻译 教程
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|Sitemap|小黑屋|德云社区 |网站地图  

GMT+8, 2024-7-20 10:51 , Processed in 0.032811 second(s), 30 queries .

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

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

快速回复 返回顶部 返回列表