{"id":3997,"date":"2020-02-17T20:19:14","date_gmt":"2020-02-17T11:19:14","guid":{"rendered":"https:\/\/www.searchlight8.com\/?p=3997"},"modified":"2020-12-06T23:45:44","modified_gmt":"2020-12-06T14:45:44","slug":"centos-7x-imagimagick-install","status":"publish","type":"post","link":"https:\/\/www.searchlight8.com\/wp-searchlight8\/centos-7x-imagimagick-install\/","title":{"rendered":"[CentOS 7x] OS\u306e\u521d\u671f\u72b6\u614b\u304b\u3089ImageMagick\u3092\u52d5\u304b\u3059\u65b9\u6cd5"},"content":{"rendered":"<p> CentOS 7x \u306e\u521d\u671f\u72b6\u614b\u306bImageMagick\u3092\u5165\u308c\u3066\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u305f\u3002ImageMagick\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u306a\u3069\u304c\u591a\u3044\u306e\u3067\u8272\u3005\u3068\u8a66\u884c\u932f\u8aa4\u3057\u307e\u3057\u305f\u3002\u3046\u307e\u304f\u884c\u3063\u305f\u3082\u306e\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>php\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true \" >yum -y install --enablerepo=epel,remi,remi-php73 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt php-common\r\n<\/pre>\n<h3>yum\u3067ImageMagick ImageMagick-devel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true \" ># yum install ImageMagick ImageMagick-devel gcc<\/pre>\n<h3>yum\u3067Imagick\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>yum list | grep imagick\u3000\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u63a2\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" ># yum -y install --enablerepo=remi-php73 php-pecl-imagick.x86_64<\/pre>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/h3>\n<p>[ImageMagick] <\/p>\n<pre class=\"lang:default decode:true \" >]# convert -version\r\nVersion: ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01 https:\/\/imagemagick.org\r\n<\/pre>\n<p>[Imagick]<\/p>\n<pre class=\"lang:default decode:true \" ># php -i | grep imagick\r\n\/etc\/php.d\/40-imagick.ini\r\nimagick\r\nimagick module =&gt; enabled\r\nimagick module version =&gt; 3.4.4\r\nimagick classes =&gt; Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel\r\nimagick.locale_fix =&gt; 0 =&gt; 0\r\nimagick.progress_monitor =&gt; 0 =&gt; 0\r\nimagick.skip_version_check =&gt; 1 =&gt; 1earchlight8.com\/wp\/wp-admin\/post.php?post=3997&amp;action=edit#<\/pre>\n<p>phpinfo()\u306b\u3082\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>php.ini\u306b\u3000extension=imagick.so\u3000\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\u3053\u3053\u304b\u3089\u4e0b\u306f2019\u5e74\u306e\u8a18\u9332\u3067\u3059\u3002<\/p>\n<h3>curl\u306e\u8a2d\u5b9a<\/h3>\n<p>\u516c\u5f0f\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306a\u3069\u304b\u3089\u30ec\u30dd\u30b8\u30c8\u30ea\u30c7\u30fc\u30bf\u306a\u3069\u3092\u53d6\u5f97\u3059\u308b\u6642\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u3001curl\u3067\u5916\u90e8\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" ># yum update curl<\/pre>\n<h3>\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u53d6\u5f97<\/h3>\n<p>\uff12\u3064\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u300cepel\u300d\u3068\u300cremi\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h4>epel<\/h4>\n<pre class=\"lang:default decode:true \" >rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\r\n<\/pre>\n<h4>remi<\/h4>\n<pre class=\"lang:default decode:true \" > rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm\r\n<\/pre>\n<p>\u203b\u4e0a\u624b\u304f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u3068\u304d\u306f\u30df\u30e9\u30fc\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a<br \/>\nrpm -Uvh http:\/\/remi.conetix.com.au\/enterprise\/remi-release-7.rpm<\/p>\n<h3>php\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true \" >yum -y install --enablerepo=epel,remi,remi-php73 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt\r\n<\/pre>\n<h3>php\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/h3>\n<p>php\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >php --version\r\nPHP 7.3.15 (cli) (built: Jan 23 2020 09:05:58) ( NTS )\r\n<\/pre>\n<p>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 7.1.33 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h3>apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true \" > yum -y install httpd<\/pre>\n<h3>ImageMagick\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default decode:true \" ># yum install fftw3\r\n# yum install libXt\r\n# yum install libtool-ltdl\r\n<\/pre>\n<h3>ImageMagic\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09<\/h3>\n<pre class=\"lang:default decode:true \" >$ yum -y install --enablerepo=epel,remi,remi-php73 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt\r\n\r\n\r\n$ yum install ImageMagick ImageMagick-devel gcc\r\n$ yum install --enablerepo=remi,remi-php73 php-pear\r\n$ yum install --enablerepo=remi,remi-php73 php-devel\r\n\r\n$ yum -y install gcc make\r\n\r\n$ pecl install Imagick<\/pre>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>ImaegMagick\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<br \/>\n$ convert -version<\/p>\n<p>php.ini \u306b\u300cextension=imagick.so\u300d\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<h3>ImageMagic\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u516c\u5f0f\u30da\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09<\/h3>\n<p>3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n <a href=\"https:\/\/www.imagemagick.org\/script\/download.php\">https:\/\/imagemagick.org\/\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a><br \/>\n\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3001\u4e0a\u8a18\u30da\u30fc\u30b8\u3067\u5fc5\u305a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true \" ># yum install -y https:\/\/www.imagemagick.org\/download\/linux\/CentOS\/x86_64\/ImageMagick-libs-7.0.9-25.x86_64.rpm\r\n# yum install -y https:\/\/www.imagemagick.org\/download\/linux\/CentOS\/x86_64\/ImageMagick-7.0.9-25.x86_64.rpm\r\n# yum install -y https:\/\/www.imagemagick.org\/download\/linux\/CentOS\/x86_64\/ImageMagick-devel-7.0.9-25.x86_64.rpm\r\n\r\n<\/pre>\n<h3>ImageMagick\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h3>\n<pre class=\"lang:default decode:true \" >#  magick --version\r\nVersion: ImageMagick 7.0.9-23 Q16 x86_64 2020-02-14 https:\/\/imagemagick.org\r\nCopyright: \u00a9 1999-2020 ImageMagick Studio LLC\r\nLicense: https:\/\/imagemagick.org\/script\/license.php\r\nFeatures: Cipher DPC HDRI Modules OpenMP(3.1) \r\nDelegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm rsvg tiff webp wmf x xml zlib\r\n<\/pre>\n<h3>Imagick\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>remi\u3092\u6307\u5b9a\u3057\u3066php-pear\u3068php-devel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"lang:default decode:true \" >yum install --enablerepo=remi,remi-php73 php-pear\r\nyum install --enablerepo=remi,remi-php73 php-devel<\/pre>\n<pre class=\"lang:default decode:true \" >pecl install Imagick<\/pre>\n<p>make\u304c\u7121\u3044\u3068\u8a00\u308f\u308c\u308b\u3068\u304d\u306f<br \/>\n# yum -y install gcc make<br \/>\n\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089 pecl install Imagick \u3092\u884c\u3046\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u308b\u3068<\/p>\n<pre class=\"lang:default decode:true \" >You should add \"extension=imagick.so\" to php.ini<\/pre>\n<p> \u3068\u3044\u3046\u30b3\u30e1\u30f3\u30c8\u304c\u51fa\u308b\u306e\u3067\u3001php.ini\u306b extension=imagick.so \u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<h3>phpifo()\u3067imagick\u304c\u51fa\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6210\u529f\u3059\u308b\u3068 phpinfo(); \u306b imagick\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.searchlight8.com\/wp\/wp-content\/uploads\/2020\/02\/phpinfo__.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.searchlight8.com\/wp\/wp-content\/uploads\/2020\/02\/phpinfo__.jpg\" alt=\"phpinfo__\" width=\"996\" height=\"569\" class=\"alignnone size-full wp-image-4073\" srcset=\"https:\/\/www.searchlight8.com\/wp-content\/uploads\/2020\/02\/phpinfo__.jpg 996w, https:\/\/www.searchlight8.com\/wp-content\/uploads\/2020\/02\/phpinfo__-300x171.jpg 300w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/a><\/p>\n<h3>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306e\u78ba\u8a8d\u65b9\u6cd5<\/h3>\n<pre class=\"lang:default decode:true \" ># php -i | grep imagick\r\nimagick\r\nimagick module =&gt; enabled\r\nimagick module version =&gt; 3.4.4\r\nimagick classes =&gt; Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel\r\nimagick.locale_fix =&gt; 0 =&gt; 0\r\nimagick.progress_monitor =&gt; 0 =&gt; 0\r\nimagick.skip_version_check =&gt; 0 =&gt; 0<\/pre>\n<h4>imagick\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/h4>\n<p>php\u3092remi\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u3068\u304d\u3001yum install imagic\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306f\u4f7f\u308f\u306a\u3044\u3067\u3059\u304c\u3001yum\u306eimagick\u306e\u30ea\u30b9\u30c8\u306e\u8868\u793a\u65b9\u6cd5\u3067\u3059\uff08\u53c2\u8003\uff09<\/p>\n<pre class=\"lang:default decode:true \" ># yum list | grep imagick\r\nphp-pecl-imagick.x86_64                   3.1.0-0.6.RC2.el7            epel     \r\nphp54-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp54-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp55-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp55-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp56-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp56-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp70-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp70-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp71-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp71-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp72-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp72-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp73-php-pecl-imagick.x86_64             3.4.4-1.el7.remi             remi-safe\r\nphp73-php-pecl-imagick-devel.x86_64       3.4.4-1.el7.remi             remi-safe\r\nphp74-php-pecl-imagick.x86_64             3.4.4-6.el7.remi             remi-safe\r\nphp74-php-pecl-imagick-devel.x86_64       3.4.4-6.el7.remi             remi-safe<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7x \u306e\u521d\u671f\u72b6\u614b\u306bImag&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2893,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[288,14],"tags":[278,327,326,328,80,325],"class_list":["post-3997","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-linux","tag-centos7","tag-curl","tag-epel","tag-imagemagick","tag-php","tag-remi","wpcat-288-id","wpcat-14-id"],"_links":{"self":[{"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/posts\/3997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/comments?post=3997"}],"version-history":[{"count":25,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/posts\/3997\/revisions"}],"predecessor-version":[{"id":5124,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/posts\/3997\/revisions\/5124"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/media\/2893"}],"wp:attachment":[{"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/media?parent=3997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/categories?post=3997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchlight8.com\/wp-searchlight8\/wp-json\/wp\/v2\/tags?post=3997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}