imagick 3.4.3 を pecl インストール

ソフトウェアスイートImageMagick

目次一覧

 状態:-  閲覧数:953  投稿日:2017-03-08  更新日:2019-07-19
これまで

1.imagick.ini削除 / 2.Imagickアンインストール

imagick削除した状態で再インストール

感想


これまで

 閲覧数:325 投稿日:2014-09-18 更新日:2019-07-19 

これまで



PHP Version 7.1.2 ImageMagickエクステンション対応 / PHP 7.0.14 からのアップグレード
PHP Version 7.1.2 エクステンション対応 / PHP 7.0.14 からのアップグレード対応

方針


imagickアンインストール後、再インストール
・php.iniファイルの該当部分も一旦削除後、再作成

設定変更反映
・その都度、Apache再起動して確認


手順


1.imagick.ini削除
2.Imagickアンインストール
3.Imagickインストール
4.imagick.ini作成

1.imagick.ini削除 / 2.Imagickアンインストール

 閲覧数:289 投稿日:2017-03-08 更新日:2017-03-08 

エラーメッセージ


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - /usr/lib64/php/modules/imagick.so: undefined symbol: zend_object_store_get_object in Unknown on line 0


症状


PHPファイルよりImagickクラス呼出不可

警告表示
$ php --ini
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - /usr/lib64/php/modules/imagick.so: undefined symbol: zend_object_store_get_object in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mecab.so' - /usr/lib64/php/modules/mecab.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed:      /etc/php.d/20-bcmath.ini,
/etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-json.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mcrypt.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-soap.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tidy.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini,
/etc/php.d/30-xmlrpc.ini,
/etc/php.d/40-apcu.ini,
/etc/php.d/40-zip.ini,
/etc/php.d/50-apc.ini,
/etc/php.d/50-mysql.ini,
/etc/php.d/imagick.ini,
/etc/php.d/mecab.ini



関係なかった処理


php.iniファイルへ「'/usr/lib64/php/modules/imagick.so'」を記載していると予想
・記載していなかった
$ sudo vi /etc/php.ini


多分不要だったと思われる処理


$ sudo yum install ImageMagick-devel    
                                                                                                         
読み込んだプラグイン:fastestmirror, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.jaist.ac.jp
* extras: ftp.riken.jp
* remi-safe: mirrors.mediatemple.net
* rpmforge: ftp.riken.jp
* updates: ftp.riken.jp
パッケージ ImageMagick-devel-6.7.2.7-5.el6_8.x86_64 はインストール済みか最新バージョンです
何もしません


$ sudo -s
# yum --enablerepo=remi-php70 install php-pear  
                                                                             
読み込んだプラグイン:fastestmirror, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.jaist.ac.jp
* extras: ftp.riken.jp
* remi-php70: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* rpmforge: ftp.riken.jp
* updates: ftp.riken.jp
remi-php70                                                                                                                            | 2.9 kB     00:00    
パッケージ 1:php-pear-1.10.3-1.el6.remi.noarch はインストール済みか最新バージョンです
何もしません


# rm -f /etc/php.d/apc.ini


1.imagick.ini削除


# rm -f /etc/php.d/imagick.ini


多分不要だったと思われる処理


# pecl uninatall apc
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mecab.so' - /usr/lib64/php/modules/mecab.so: cannot open shared object file: No such file or directory in Unknown on line 0
Command 'uninatall' is not valid, try 'pecl help'



2.Imagickアンインストール


# pecl uninstall imagick
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mecab.so' - /usr/lib64/php/modules/mecab.so: cannot open shared object file: No such file or directory in Unknown on line 0
pecl/imagick not installed


Apache再起動
# service httpd restart

現状確認
・Imagick警告表示は消えている
# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mecab.so' - /usr/lib64/php/modules/mecab.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.1.2 (cli) (built: Feb 15 2017 08:51:17) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies


imagick削除した状態で再インストール

 閲覧数:185 投稿日:2017-03-08 更新日:2017-03-08 

3.Imagickインストール


Imagick再インストール
# pecl install imagick
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mecab.so' - /usr/lib64/php/modules/mecab.so: cannot open shared object file: No such file or directory in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading imagick-3.4.3.tgz ...
Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303
Please provide the prefix of Imagemagick installation [autodetect] : building in /var/tmp/pear-build-rootdemCHT/imagick-3.4.3
running: /var/tmp/imagick/configure --with-php-config=/usr/bin/php-config --with-imagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... It exists
found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.7.2 Q16
checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 7.1.2
libs
-lMagickWand -lMagickCore


checking for MagickGetVersion... yes
checking for MagickSetImageInterpolateMethod... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_file.c -o imagick_file.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_class.c -o imagick_class.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimagematte’:
/var/tmp/imagick/imagick_class.c:299: 警告: ‘MagickGetImageMatte’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
/var/tmp/imagick/imagick_class.c:1284: 警告: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
/var/tmp/imagick/imagick_class.c:1292: 警告: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_recolorimage’:
/var/tmp/imagick/imagick_class.c:1774: 警告: ‘MagickRecolorImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
/var/tmp/imagick/imagick_class.c:4315: 警告: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mapimage’:
/var/tmp/imagick/imagick_class.c:4743: 警告: ‘MagickMapImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
/var/tmp/imagick/imagick_class.c:4784: 警告: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
/var/tmp/imagick/imagick_class.c:4822: 警告: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:212)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
/var/tmp/imagick/imagick_class.c:4904: 警告: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
/var/tmp/imagick/imagick_class.c:4987: 警告: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
/var/tmp/imagick/imagick_class.c:5151: 警告: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:260)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
/var/tmp/imagick/imagick_class.c:6481: 警告: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
/var/tmp/imagick/imagick_class.c:6698: 警告: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
/var/tmp/imagick/imagick_class.c:7039: 警告: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageindex’:
/var/tmp/imagick/imagick_class.c:8151: 警告: ‘MagickGetImageIndex’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimagesize’:
/var/tmp/imagick/imagick_class.c:8272: 警告: ‘MagickGetImageSize’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
/var/tmp/imagick/imagick_class.c:8746: 警告: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_flattenimages’:
/var/tmp/imagick/imagick_class.c:9121: 警告: ‘MagickFlattenImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_averageimages’:
/var/tmp/imagick/imagick_class.c:10308: 警告: ‘MagickAverageImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
/var/tmp/imagick/imagick_class.c:10811: 警告: ‘MagickMosaicImages’ is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickdraw_class.c -o imagickdraw_class.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickpixel_class.c -o imagickpixel_class.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_helpers.c -o imagick_helpers.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick.c -o imagick.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickkernel_class.c -o imagickkernel_class.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagickkernel_class.c  -fPIC -DPIC -o .libs/imagickkernel_class.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/shim_im6_to_im7.c -o shim_im6_to_im7.lo
libtool: compile:  cc -fopenmp -I/usr/include/ImageMagick -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/shim_im6_to_im7.c  -fPIC -DPIC -o .libs/shim_im6_to_im7.o
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/include -I/var/tmp/pear-build-rootdemCHT/imagick-3.4.3/main -I/var/tmp/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo imagickkernel_class.lo shim_im6_to_im7.lo -lMagickWand -lMagickCore
libtool: link: cc -shared  .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   -lMagickWand -lMagickCore    -Wl,-soname -Wl,imagick.so -o .libs/imagick.so
libtool: link: ( cd ".libs" && rm -f "imagick.la" && ln -s "../imagick.la" "imagick.la" )
/bin/sh /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/libtool --mode=install cp ./imagick.la /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules
libtool: install: cp ./.libs/imagick.so /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules/imagick.so
libtool: install: cp ./.libs/imagick.lai /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules/imagick.la
libtool: finish: PATH="/usr/bin:/home/dotinstall/.rvm/gems/ruby-2.0.0-p247/bin:/home/dotinstall/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/dotinstall/.rvm/rubies/ruby-2.0.0-p247/bin:/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/dotinstall/bin:/home/dotinstall/.nodebrew/current/bin:/home/dotinstall/.rvm/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules
----------------------------------------------------------------------
Libraries have been installed in:
  /var/tmp/pear-build-rootdemCHT/imagick-3.4.3/modules

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

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

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

running: make INSTALL_ROOT="/var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3" install
Installing shared extensions:     /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/lib64/php/modules/
Installing header files:           /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include/php/
running: find "/var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3" | xargs ls -dils
1191555    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3
1191654    4 drwxr-xr-x 4 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr
1191687    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include
1191688    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include/php
1191699    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include/php/ext
1191700    4 drwxr-xr-x 2 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include/php/ext/imagick
1191707    4 -rw-r--r-- 1 root root    1828  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/include/php/ext/imagick/php_imagick_shared.h
1191660    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/lib64
1191663    4 drwxr-xr-x 3 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/lib64/php
1191686    4 drwxr-xr-x 2 root root    4096  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/lib64/php/modules
1191653 1092 -rwxr-xr-x 1 root root 1115765  3月  8 18:55 2017 /var/tmp/pear-build-rootdemCHT/install-imagick-3.4.3/usr/lib64/php/modules/imagick.so

Build process completed successfully
Installing '/usr/include/php/ext/imagick/php_imagick_shared.h'
Installing '/usr/lib64/php/modules/imagick.so'
install ok: channel://pecl.php.net/imagick-3.4.3
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini



確認 / 追記 / 再起動


#  find / -name imagick.so
/usr/lib64/php/modules/imagick.so


4.imagick.ini作成
# vi /etc/php.d/imagick.ini
extension=imagick.so


再起動
# service httpd restart


感想

 閲覧数:154 投稿日:2017-03-08 更新日:2017-03-08 

思いの外難しかった


最初は軽く考えていた
・▼/etc/php.d/imagick.ini内容を「'/usr/lib64/php/modules/imagick.so'」へ修正するだけで終了すると思っていた
・試すも効果なし
・そもそも、どこにも「'/usr/lib64/php/modules/imagick.so'」記載がないのに、警告表示が消えない
・段々焦ってくる
・下記ページを見つけなければ、もしかしたら途中で諦めていたかもしれない
・削除が必要ということに、考えが及ばなかった
・前回削除したのは、経験値が低かったからだと考えていた
・まさかアレで正解だったとは…
・ちなみに、現在時刻は19:40
・11時間40分経過中…
yumでPHP7をCentOS7にインストールする方法


ImageMagick と imagick の違い

ImageMagick 7.0.8-54 を yum インストール



週間人気ページランキング / 9-16 → 9-22
順位 ページタイトル抜粋 アクセス数
1 Nginx設定。エラーログレベル | Nginx(Webサーバ) 19
2 PHP実行ユーザ設定 / CentOS6 / Apache | PHP(プログラミング言語) 14
3 PHPのmb_send_mail関数でメール送信できない | メール処理システム 13
4 9回目-13.MySQL5.7.21設定 | CentOS 7 2週間無料のお試し期間 9回目(さくらVPS) 12
5 touch コマンド / viコマンド。新規ファイル作成時の違い | Linuxコマンド 8
6 ソースからビルドしたPython 2.7.3 アンインストール失敗 | Python(プログラミング言語) 7
6 FFmpeg 2.8.15 を yum インストール | ソフトウェアスイート 7
6 「設定ファイルに、暗号化 (blowfish_secret) 用の非公開パスフレーズの設定を必要とするようになりました。」対応 7
6 Python 3.5 アンインストール / yum remove | Python(プログラミング言語) 7
6 manページ日本語表示 | CentOS 7 (CentOS) 7
6 PHPファイルでchmodエラー | PHP(プログラミング言語) 7
7 ABRT により 問題が検出されました | CentOS 7 (CentOS) 6
7 Python 3.6 インストール / make altinstall | Python(プログラミング言語) 6
7 さくらVPS0 6
8 Reached target Shutdown メッセージが表示されたあと、シャットダウンまたは再起動プロセスがハングアップする | CentOS 7 (CentOS) 5
9 PHP Version 7.1.2 php-mecabエクステンション対応 / PHP 7.0.14 からのアップグレード  | MeCab(形態素解析) 4
9 echo と cat の違い 4
9 phpMyAdmin 4.4.3(phpMyAdmin) カテゴリー 4
9 tar: これは tar アーカイブではないようです 4
9 MySQL 5.5 から 5.6 へのアップグレード | MySQL(データベース) 4
2021/9/23 1:01 更新