{"id":5067,"date":"2022-05-26T17:19:27","date_gmt":"2022-05-26T08:19:27","guid":{"rendered":"http:\/\/www.hbnet.jp\/papas\/weblog\/?p=5067"},"modified":"2022-05-31T20:21:43","modified_gmt":"2022-05-31T11:21:43","slug":"post-5067","status":"publish","type":"post","link":"http:\/\/www.hbnet.jp\/papas\/weblog\/2022\/05\/26\/post-5067\/","title":{"rendered":"ImageMagick\u3068zip"},"content":{"rendered":"<p>\u30d6\u30ed\u30b0\u7ba1\u7406\u3082\u7c21\u5358\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nWordPress \u30825.9.3\u21926.0\u3078\u3001\u305d\u308c\u3082\u81ea\u52d5\u7684\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3001\u4f55\u4e8b\u3082\u7121\u304b\u3063\u305f\u3088\u3046\u306b\u52d5\u3044\u3066\u307e\u3059\u3002<br \/>\n\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3057\u3066\u308b\u304b\u3089\u5f53\u305f\u308a\u524d\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5068\" src=\"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-content\/uploads\/2022\/05\/WS000000.jpg\" alt=\"\" width=\"621\" height=\"183\" srcset=\"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-content\/uploads\/2022\/05\/WS000000.jpg 621w, http:\/\/www.hbnet.jp\/papas\/weblog\/wp-content\/uploads\/2022\/05\/WS000000-512x151.jpg 512w, http:\/\/www.hbnet.jp\/papas\/weblog\/wp-content\/uploads\/2022\/05\/WS000000-530x156.jpg 530w, http:\/\/www.hbnet.jp\/papas\/weblog\/wp-content\/uploads\/2022\/05\/WS000000-565x166.jpg 565w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><br \/>\n\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u300c\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u300d\u30fb\u30fb\u30fb\u30b3\u30ec\u306f\u6b63\u5e38\u753b\u9762\u3002<br \/>\n\u3057\u3070\u3089\u304f\u898b\u3066\u306a\u304b\u3063\u305f\u3089\u3001PHP\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7121\u3044\u4e8b\u306b\u306a\u3063\u3066\u307e\u3057\u305f\u3002<br \/>\n\u666e\u901a\u306b\u52d5\u3044\u3066\u308b\u3051\u3069\u3001\u6709\u3063\u305f\u65b9\u304c\u826f\u3044\u307f\u305f\u3044\u3002<br \/>\nImageMagick\u3068zip\u306ePHP\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7121\u3044\u305d\u3046\u306a\u30fb\u30fb\u30fb\u30fb<\/p>\n<table style=\"border-collapse: collapse; width: 84.1563%; height: 31px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 31px;\">\n<td style=\"width: 100%; height: 31px;\"># dnf config-manager &#8211;set-enabled PowertTools<br \/>\n\u30a8\u30e9\u30fc: \u4fee\u6b63\u7528\u306e\u4e00\u81f4\u3059\u308b repo \u306f\u3042\u308a\u307e\u305b\u3093: PowerTools.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3042\u308c\u307e\uff01\u53c2\u8003\u306b\u3057\u305f\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u306f\u30b3\u30ec\u3067\u4e0a\u624b\u304f\u884c\u304f\u7684\u306a\u66f8\u304b\u308c\u65b9\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3001<br \/>\n\u521d\u3063\u7aef\u304b\u3089\u8e93\u304d\u307e\u3057\u305f\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># dnf config-manager &#8211;set-enabled powertools<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f55\u3068\u3001\u5c0f\u6587\u5b57\u304b\u3088\uff01 PowerTools \u3092 powertools \u306b\u5909\u3048\u305f\u3089\u3059\u3093\u306a\u308a\u901a\u904e\u3002<br \/>\n\u3055\u3066\u6b21\u306f\u3001ImageMagic \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u4f5c\u6210\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># dnf list | grep ImageMagic<br \/>\nImageMagick.x86_64 6.9.12.48-2.el8 @System<br \/>\nImageMagick-libs.x86_64 6.9.12.48-2.el8 @System<br \/>\nImageMagick-perl.x86_64 6.9.12.48-2.el8 @System<br \/>\nImageMagick6-libs.x86_64 1:6.9.12.48-1.el8.remi @remi-safe<br \/>\nImageMagick-c++.x86_64 6.9.12.48-2.el8 epel<br \/>\nImageMagick-c++-devel.x86_64 6.9.12.48-2.el8 epel<br \/>\n<span style=\"background-color: #ffff00;\">ImageMagick-devel.x86_64 6.9.12.48-2.el8 epel<\/span><br \/>\nImageMagick-djvu.x86_64 6.9.12.48-2.el8 epel<br \/>\nImageMagick-doc.x86_64 6.9.12.48-2.el8 epel<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30b3\u30ec\u304c\u3001\u5fc5\u8981\u306a\u5974\u306d\u30fb\u30fb\u30fb\u30fb\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u898b\u307e\u3057\u3087\u3046\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># dnf install ImageMagick-devel.x86_64<br \/>\n\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u671f\u9650\u5207\u308c\u306e\u6700\u7d42\u78ba\u8a8d: 0:03:17 \u6642\u9593\u524d\u306e 2022\u5e7405\u670826\u65e5 15\u664235\u520615\u79d2 \u306b\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4f9d\u5b58\u95a2\u4fc2\u304c\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<br \/>\n===================================================<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8 Arch \u30d0\u30fc\u30b8\u30e7\u30f3 Repo \u30b5\u30a4\u30ba<br \/>\n===================================================<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:<br \/>\nImageMagick-devel x86_64 6.9.12.48-2.el8 epel 131 k<\/p>\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u6982\u8981<br \/>\n===================================================<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 1 \u30d1\u30c3\u30b1\u30fc\u30b8<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f:<br \/>\nImageMagick-devel-6.9.12.48-2.el8.x86_64<\/p>\n<p>\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7121\u4e8b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u305d\u306e\u4ed6\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># rpm -qa | grep php php-devel<br \/>\n<span style=\"background-color: #ffff00;\">php-devel-7.4.29-1.el8.remi.x86_64<\/span><br \/>\n# rpm -qa | grep php-pear<br \/>\n<span style=\"background-color: #ffff00;\">php-pear-1.10.13-1.el8.remi.noarch<\/span><br \/>\n# rpm -qa | grep make<br \/>\n<span style=\"background-color: #ffff00;\">make-4.2.1-11.el8.x86_64<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3055\u3066\u3001\u3044\u3088\u3044\u3088\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210\u3060\uff5e<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># pecl install imagick<br \/>\nrunning: \/var\/tmp\/imagick\/configure &#8211;with-php-config=\/usr\/bin\/php-config &#8211;with-imagick<br \/>\nchecking for grep that handles long lines and -e&#8230; \/usr\/bin\/grep<br \/>\nchecking for egrep&#8230; \/usr\/bin\/grep -E<br \/>\nchecking for a sed that does not truncate output&#8230; \/usr\/bin\/sed<br \/>\nchecking for pkg-config&#8230; \/usr\/bin\/pkg-config<br \/>\nchecking pkg-config is at least version 0.9.0&#8230; yes<br \/>\nchecking for cc&#8230; cc<br \/>\nchecking whether the C compiler works&#8230; yes<\/p>\n<p>\u9014\u4e2d\u7565<\/p>\n<p>running: make<\/p>\n<p>\u9014\u4e2d\u7565<\/p>\n<p>Build complete.<br \/>\nDon&#8217;t forget to run &#8216;make test&#8217;.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3068\u3063\u3066\u3082\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u7d42\u4e86\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># ls -la<br \/>\n\u5408\u8a08 11988<br \/>\ndrwxr-xr-x 2 root root 4096 5\u6708 26 15:41 .<br \/>\ndrwxr-xr-x 4 root root 34 4\u6708 13 00:19 ..<br \/>\n-rwxr-xr-x 1 root root 37992 4\u6708 13 00:20 bcmath.so<br \/>\n-rwxr-xr-x 1 root root 29368 4\u6708 13 00:20 bz2.so<br \/>\n-rwxr-xr-x 1 root root 37768 4\u6708 13 00:20 calendar.so<br \/>\n-rwxr-xr-x 1 root root 16560 4\u6708 13 00:20 ctype.so<br \/>\n-rwxr-xr-x 1 root root 108456 4\u6708 13 00:20 curl.so<br \/>\n-rwxr-xr-x 1 root root 173112 4\u6708 13 00:20 dom.so<br \/>\n-rwxr-xr-x 1 root root 90672 4\u6708 13 00:20 exif.so<br \/>\n-rwxr-xr-x 1 root root 5744912 4\u6708 13 00:20 fileinfo.so<br \/>\n-rwxr-xr-x 1 root root 66960 4\u6708 13 00:20 ftp.so<br \/>\n-rwxr-xr-x 1 root root 117024 4\u6708 13 00:20 gd.so<br \/>\n-rwxr-xr-x 1 root root 16584 4\u6708 13 00:20 gettext.so<br \/>\n-rwxr-xr-x 1 root root 74760 4\u6708 13 00:20 gmp.so<br \/>\n-rwxr-xr-x 1 root root 49592 4\u6708 13 00:20 iconv.so<br \/>\n<span style=\"background-color: #ffff00;\">-rwx<\/span><span style=\"background-color: #ffff00;\">r-xr-x 1 root root 1646872 5\u6708 26 15:41 imagick.so<\/span><br \/>\n-rwxr-xr-x 1 root root 507120 4\u6708 13 00:20 intl.so<br \/>\n-rwxr-xr-x 1 root root 45856 4\u6708 13 00:20 json.so<br \/>\n-rwxr-xr-x 1 root root 99360 4\u6708 13 00:20 ldap.so<br \/>\n-rwxr-xr-x 1 root root 1072992 4\u6708 13 00:20 mbstring.so<br \/>\n-rwxr-xr-x 1 root root 151256 4\u6708 13 00:20 mysqli.so<br \/>\n-rwxr-xr-x 1 root root 267216 4\u6708 13 00:20 mysqlnd.so<br \/>\n-rwxr-xr-x 1 root root 566440 4\u6708 13 00:20 opcache.so<br \/>\n-rwxr-xr-x 1 root root 116800 4\u6708 13 00:20 pdo.so<br \/>\n-rwxr-xr-x 1 root root 33600 4\u6708 13 00:20 pdo_mysql.so<br \/>\n-rwxr-xr-x 1 root root 33656 4\u6708 13 00:20 pdo_sqlite.so<br \/>\n-rwxr-xr-x 1 root root 286584 4\u6708 13 00:20 phar.so<br \/>\n-rwxr-xr-x 1 root root 37552 4\u6708 13 00:20 posix.so<br \/>\n-rwxr-xr-x 1 root root 16528 4\u6708 13 00:20 shmop.so<br \/>\n-rwxr-xr-x 1 root root 58840 4\u6708 13 00:20 simplexml.so<br \/>\n-rwxr-xr-x 1 root root 58168 4\u6708 13 00:20 snmp.so<br \/>\n-rwxr-xr-x 1 root root 100360 4\u6708 13 00:20 sockets.so<br \/>\n-rwxr-xr-x 1 root root 92328 4\u6708 13 00:20 sodium.so<br \/>\n-rwxr-xr-x 1 root root 58440 4\u6708 13 00:20 sqlite3.so<br \/>\n-rwxr-xr-x 1 root root 20632 4\u6708 13 00:20 sysvmsg.so<br \/>\n-rwxr-xr-x 1 root root 12416 4\u6708 13 00:20 sysvsem.so<br \/>\n-rwxr-xr-x 1 root root 16560 4\u6708 13 00:20 sysvshm.so<br \/>\n-rwxr-xr-x 1 root root 25168 4\u6708 13 00:20 tokenizer.so<br \/>\n-rwxr-xr-x 1 root root 54608 4\u6708 13 00:20 xml.so<br \/>\n-rwxr-xr-x 1 root root 37304 4\u6708 13 00:20 xmlreader.so<br \/>\n-rwxr-xr-x 1 root root 89176 4\u6708 13 00:20 xmlrpc.so<br \/>\n-rwxr-xr-x 1 root root 49832 4\u6708 13 00:20 xmlwriter.so<br \/>\n-rwxr-xr-x 1 root root 37576 4\u6708 13 00:20 xsl.so<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\/etc\/php.d\/20-imagick.ini \u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u30fb\u30fb\u30fb<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\">extension=imagick.so<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u5f8c\u306b\u3001PHP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308c\u3070\u7d42\u4e86\u3067\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 100%;\"># systemctl restarestart php-fpm.service<\/p>\n<p>[root@ns php.d]# php -m<br \/>\n[PHP Modules]<br \/>\nbcmath<br \/>\nbz2<br \/>\ncalendar<br \/>\nCore<br \/>\nctype<br \/>\ncurl<br \/>\ndate<br \/>\ndom<br \/>\nexif<br \/>\nfileinfo<br \/>\nfilter<br \/>\nftp<br \/>\ngd<br \/>\ngettext<br \/>\ngmp<br \/>\nhash<br \/>\niconv<br \/>\n<span style=\"background-color: #ffff00;\">imagick<\/span><br \/>\nintl<br \/>\njson<br \/>\nldap<br \/>\nlibxml<br \/>\nmbstring<br \/>\nmysqli<br \/>\nmysqlnd<br \/>\nopenssl<br \/>\npcntl<br \/>\npcre<br \/>\nPDO<br \/>\npdo_mysql<br \/>\npdo_sqlite<br \/>\nPhar<br \/>\nposix<br \/>\nreadline<br \/>\nReflection<br \/>\nsession<br \/>\nshmop<br \/>\nSimpleXML<br \/>\nsnmp<br \/>\nsockets<br \/>\nsodium<br \/>\nSPL<br \/>\nsqlite3<br \/>\nstandard<br \/>\nsysvmsg<br \/>\nsysvsem<br \/>\nsysvshm<br \/>\ntokenizer<br \/>\nxml<br \/>\nxmlreader<br \/>\nxmlrpc<br \/>\nxmlwriter<br \/>\nxsl<br \/>\nZend OPcache<br \/>\nzlib<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30cd\u30c3\u30c8\u4e0a\u306b\u8272\u3005\u60c5\u5831\u304c\u51fa\u3066\u308b\u306e\u306f\u6709\u96e3\u3044\u306e\u3067\u3059\u304c\u3001\u9593\u9055\u3063\u305f\u60c5\u5831\u3082\u591a\u3044\u306e\u3067\u3001<br \/>\n\u53d6\u6368\u9078\u629e\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\nzip \u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u5272\u611b\u3057\u307e\u3059\u3002<br \/>\n\u3042\uff5e\u75b2\u308c\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30ed\u30b0\u7ba1\u7406\u3082\u7c21\u5358\u306b\u306a\u308a\u307e\u3057\u305f\u3002 WordPress \u30825.9.3\u21926.0\u3078\u3001\u305d\u308c\u3082\u81ea\u52d5\u7684\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3001\u4f55\u4e8b\u3082\u7121\u304b\u3063\u305f\u3088\u3046\u306b\u52d5\u3044\u3066\u307e\u3059\u3002 \u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3057\u3066\u308b\u304b\u3089\u5f53\u305f\u308a\u524d\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002 \u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306e\u30c0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5069,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-5067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-7"],"_links":{"self":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/5067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/comments?post=5067"}],"version-history":[{"count":3,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/5067\/revisions"}],"predecessor-version":[{"id":5097,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/5067\/revisions\/5097"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/media\/5069"}],"wp:attachment":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/media?parent=5067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/categories?post=5067"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/tags?post=5067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}