imagick 3.1.2 を imagick 3.2.0RC1 へ pecl アップデート

ソフトウェアスイートImageMagick

目次一覧

 状態:-  閲覧数:1,329  投稿日:2014-09-11  更新日:2019-07-19
PHP5.4 へバージョンアップしたらエラー発生 / imagick 3.2.0RC1 インストール / インストール確認

phpの設定ファイルをphp.ini から分離させても良いの?


PHP5.4 へバージョンアップしたらエラー発生 / imagick 3.2.0RC1 インストール / インストール確認

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

PHP5.4へバージョンアップしたらエラー発生


PHP 5.3.3 → 5.4.32
No route found for /★★.php


Imagickは、通常のpecl installではPHP 5.4に未対応
・PHP5.4に対応したImagickバージョンは、まだstableではない

Imagickは、2011年9月リリースのimagick3.1.0RC1でPHP5.4に対応
・しかし、このバージョンはβ版のため、通常のpecl installではインストールされない
・「imagick-beta」の意味は、ダウンロードページに記載されているStateがbetaの中で最新のものを自動選択する仕様だと思われ
pecl install imagick-beta

imagick 3.2.0RC1 インストール


# pecl install imagick
pecl/imagick is already installed and is the same as the released version 3.1.2
install failed


# php -i | grep imagick
/etc/php.d/imagick.ini,


# pecl install imagick-beta
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading imagick-3.2.0RC1.tgz ...
Starting to download imagick-3.2.0RC1.tgz (163,503 bytes)
...................................done: 163,503 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525


Imagemagickインストールするに辺り、プレフィックスを入力してください
Please provide the prefix of Imagemagick installation [autodetect]

・Enterで自動検出

building in /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1
running: /var/tmp/imagick/configure --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 whether to make Imagick respect PHP memory limits... no
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.8.8 Q16
checking for MagickWand.h or magick-wand.h header... /usr/local/include/ImageMagick-6/wand/MagickWand.h
checking whether to use Zend MM... no
checking PHP version is at least 5.1.3... yes. found 5.4.32
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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_file.c -o imagick_file.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_class.c -o imagick_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -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:294: 警告: ‘MagickGetImageMatte’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:82)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
/var/tmp/imagick/imagick_class.c:1128: 警告: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:99)
/var/tmp/imagick/imagick_class.c:1136: 警告: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:99)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_recolorimage’:
/var/tmp/imagick/imagick_class.c:1594: 警告: ‘MagickRecolorImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:113)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
/var/tmp/imagick/imagick_class.c:3868: 警告: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:75)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mapimage’:
/var/tmp/imagick/imagick_class.c:4249: 警告: ‘MagickMapImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:86)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
/var/tmp/imagick/imagick_class.c:4288: 警告: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:88)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
/var/tmp/imagick/imagick_class.c:4322: 警告: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/magick-image.h:217)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
/var/tmp/imagick/imagick_class.c:4400: 警告: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:104)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
/var/tmp/imagick/imagick_class.c:4479: 警告: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:107)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
/var/tmp/imagick/imagick_class.c:4638: 警告: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/magick-image.h:264)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
/var/tmp/imagick/imagick_class.c:5733: 警告: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:59)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
/var/tmp/imagick/imagick_class.c:5935: 警告: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:78)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
/var/tmp/imagick/imagick_class.c:6206: 警告: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:80)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimageindex’:
/var/tmp/imagick/imagick_class.c:7174: 警告: ‘MagickGetImageIndex’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:65)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_setimageindex’:
/var/tmp/imagick/imagick_class.c:7199: 警告: ‘MagickSetImageIndex’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:117)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getimagesize’:
/var/tmp/imagick/imagick_class.c:7282: 警告: ‘MagickGetImageSize’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:144)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
/var/tmp/imagick/imagick_class.c:7694: 警告: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:115)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_flattenimages’:
/var/tmp/imagick/imagick_class.c:7990: 警告: ‘MagickFlattenImages’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:136)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_averageimages’:
/var/tmp/imagick/imagick_class.c:9143: 警告: ‘MagickAverageImages’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:135)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
/var/tmp/imagick/imagick_class.c:9633: 警告: ‘MagickMosaicImages’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:139)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_radialblurimage’:
/var/tmp/imagick/imagick_class.c:9760: 警告: ‘MagickRadialBlurImageChannel’ is deprecated (declared at /usr/local/include/ImageMagick-6/wand/deprecate.h:111)
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getquantumdepth’:
/var/tmp/imagick/imagick_class.c:10283: 警告: passing argument 4 of ‘add_assoc_string_ex’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:379: note: expected ‘char *’ but argument is of type ‘const char *’
/var/tmp/imagick/imagick_class.c: In function ‘zim_imagick_getquantumrange’:
/var/tmp/imagick/imagick_class.c:10305: 警告: passing argument 4 of ‘add_assoc_string_ex’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_API.h:379: note: expected ‘char *’ but argument is of type ‘const char *’
/bin/sh /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickdraw_class.c -o imagickdraw_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickpixel_class.c -o imagickpixel_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick_helpers.c -o imagick_helpers.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
/var/tmp/imagick/imagick_helpers.c: In function ‘php_imagick_throw_exception’:
/var/tmp/imagick/imagick_helpers.c:452: 警告: passing argument 2 of ‘zend_throw_exception’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_exceptions.h:43: note: expected ‘char *’ but argument is of type ‘const char *’
/var/tmp/imagick/imagick_helpers.c: In function ‘s_convert_exception’:
/var/tmp/imagick/imagick_helpers.c:463: 警告: passing argument 2 of ‘zend_throw_exception’ discards qualifiers from pointer target type
/usr/include/php/Zend/zend_exceptions.h:43: note: expected ‘char *’ but argument is of type ‘const char *’
/bin/sh /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/libtool --mode=compile cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6   -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/imagick/imagick.c -o imagick.lo
libtool: compile:  cc -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-6 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -c /var/tmp/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/bin/sh /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/include -I/var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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/local/include/ImageMagick-6  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/modules  imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lMagickWand-6.Q16 -lMagickCore-6.Q16
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   -L/usr/local/lib /usr/local/lib/libMagickWand-6.Q16.so /usr/local/lib/libMagickCore-6.Q16.so -llcms -ltiff -lfreetype -ljpeg -lpng12 -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -lgomp  -Wl,-rpath -Wl,/usr/local/lib   -fopenmp -pthread -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-rootAp1czC/imagick-3.2.0RC1/libtool --mode=install cp ./imagick.la /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/modules
libtool: install: cp ./.libs/imagick.so /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/modules/imagick.so
libtool: install: cp ./.libs/imagick.lai /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/modules/imagick.la
libtool: finish: PATH="/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/modules
----------------------------------------------------------------------
Libraries have been installed in:
  /var/tmp/pear-build-rootAp1czC/imagick-3.2.0RC1/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-rootAp1czC/install-imagick-3.2.0RC1" install
Installing shared extensions:     /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/lib64/php/modules/
Installing header files:          /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include/php/
running: find "/var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1" | xargs ls -dils
1587160    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1
1587193    4 drwxr-xr-x 4 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr
1587197    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include
1587198    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include/php
1587199    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include/php/ext
1587200    4 drwxr-xr-x 2 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include/php/ext/imagick
1587201    4 -rw-r--r-- 1 root root    1659  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/include/php/ext/imagick/php_imagick_shared.h
1587194    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/lib64
1587195    4 drwxr-xr-x 3 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/lib64/php
1587196    4 drwxr-xr-x 2 root root    4096  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/usr/lib64/php/modules
1587192 1008 -rwxr-xr-x 1 root root 1029086  9月 18 00:00 2014 /var/tmp/pear-build-rootAp1czC/install-imagick-3.2.0RC1/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.2.0RC1
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini


# vi /etc/php.ini
; extension_dir = "./"
extension=imagick.so


$ sudo -s service httpd restart
[sudo] password for ★★: 
httpd を停止中:                                            [  OK  ]
httpd を起動中:                                            [  OK  ]


インストール確認


<?php
phpinfo();
?>

imagick module enabled
imagick module version 3.2.0RC1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.8.8-9 Q16 x86_64 2014-03-26 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2014 ImageMagick Studio LLC
ImageMagick release date 2014-03-26
ImageMagick number of supported formats:   211
ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JNG, JNX, JPEG, JPG, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV


phpの設定ファイルをphp.ini から分離させても良いの?

 閲覧数:1,796 投稿日:2014-09-18 更新日:2014-09-18 

php.ini


大前提
・よく理解していないのにphp設定ファイルをphp.ini から分離させている

一般的な設定
▼/etc/php.ini
extension=imagick.so


自分の設定
▼/etc/php.d/imagick.ini
extension=imagick.so


・下記のように書かれているが、そんな設定やった覚えないのに
・configureで "--with-config-file-scan-dir" を追加すれば、php.ini を読んだ後にそのディレクトリ以下の*.ini ファイルを読むようになる
・yumでinstallされるphpは"--with-config-file-scan-dir=/etc/php.d/" で設定されている
・php-hogehoge module をいれると、このmoduleに関する設定ファイルが /etc/php.d/hogehoge.ini に追加されて反映される仕組み

$ ls /etc/php.d/
curl.ini      gd.ini       mbstring.ini  mysqli.ini     pdo_sqlite.ini  wddx.ini       xsl.ini
dom.ini       imagick.ini  mcrypt.ini    pdo.ini        phar.ini        xmlreader.ini  zip.ini
fileinfo.ini  json.ini     mysql.ini     pdo_mysql.ini  sqlite3.ini     xmlwriter.ini


$ php --ini
PHP Warning:  Module 'imagick' already loaded 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/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/imagick.ini,
/etc/php.d/json.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini



エラー対応


PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
・同じモジュールを複数回読み込んでいる場合に出るwarningメッセージ
・設定ファイルの記述ミスなどのために、extensionを2回読み込むなど
・現状「/etc/php.ini」と「/etc/php.d/imagick.ini」に下記を記載しているので、「/etc/php.ini」の記述をコメントアウトしたところ、エラーが消えた
extension=imagick.so


$ php --ini
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/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/imagick.ini,
/etc/php.d/json.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini




ImageMagick 6.5.4-7 を yum インストール / ImageMagick 6.8.8-9 を make インストール

ImageMagick × SVG変換



週間人気ページランキング / 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 更新