Что за ошибка imagemagick в CentOS

1.13K
.
Screamer (14.02.2013 / 23:11)
http://pecl.php.net/package/imagick
а какую? и по чему на апк ругается
.
у меня centos-6.0-x86_64
.
а разница есть, что у меня 6 centos а там 5
.
Да просто попробуй введи pecl install imagick
.
Screamer
chemax (14.02.2013 / 23:17)
а какую? и по чему на апк ругается
убери echo и двойные кавычки ибо это конфиг а не php файл
Т.е. должно получится так:
extension=apc.so
.
Screamer (14.02.2013 / 23:28)
убери echo и двойные кавычки ибо это конфиг а не php файл
Т.е. должно получится так:
extension=apc.so
пробовал непомогло сейчас сделал yum update
Прикрепленные файлы:
.
yum upgrade тоже попробовал
http://forum.ispsystem.com/ru/ ... .html
.
Screamer (14.02.2013 / 23:26)
Да просто попробуй введи pecl install imagick
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-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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
/bin/sh /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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
/var/tmp/imagick/imagick_helpers.c: In function ‘php_imagick_validate_map’:
/var/tmp/imagick/imagick_helpers.c:368: warning: initialization discards qualifiers from pointer target type
/bin/sh /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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_read.c -o imagick_read.lo
libtool: compile: cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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_read.c -fPIC -DPIC -o .libs/imagick_read.o
/bin/sh /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/libtool --mode=compile cc -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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 -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/imagick-3.0.1/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/include -I/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/imagick-3.0.1/modules imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick_read.lo imagick.lo -lMagickWand -lMagickCore
libtool: link: cc -shared .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick_read.o .libs/imagick.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-rootlvTwkN/imagick-3.0.1/libtool --mode=install cp ./imagick.la /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/modules
libtool: install: cp ./.libs/imagick.so /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/modules/imagick.so
libtool: install: cp ./.libs/imagick.lai /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/modules/imagick.la
libtool: finish: PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/modules
----------------------------------------------------------------------
Libraries have been installed in:
/var/tmp/pear-build-rootlvTwkN/imagick-3.0.1/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-rootlvTwkN/install-imagick-3.0.1" install
Installing shared extensions: /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/lib64/php/modules/
Installing header files: /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/
running: find "/var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1" | xargs ls -dils
890894 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1
890927 4 drwxr-xr-x 4 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr
890931 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include
890932 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php
890933 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/ext
890934 4 drwxr-xr-x 2 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/ext/imagick
890936 28 -rw-r--r-- 1 root root 26870 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/ext/imagick/php_imagick_defs.h
890935 4 -rw-r--r-- 1 root root 2476 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/ext/imagick/php_imagick.h
890937 4 -rw-r--r-- 1 root root 1795 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/include/php/ext/imagick/php_imagick_shared.h
890928 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/lib64
890929 4 drwxr-xr-x 3 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/lib64/php
890930 4 drwxr-xr-x 2 root root 4096 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/lib64/php/modules
890926 1068 -rwxr-xr-x 1 root root 1085494 Feb 15 11:53 /var/tmp/pear-build-rootlvTwkN/install-imagick-3.0.1/usr/lib64/php/modules/imagick.so

Build process completed successfully
Installing '/usr/lib64/php/modules/imagick.so'
Installing '/usr/include/php/ext/imagick/php_imagick.h'
Installing '/usr/include/php/ext/imagick/php_imagick_defs.h'
Installing '/usr/include/php/ext/imagick/php_imagick_shared.h'
install ok: channel://pecl.php.net/imagick-3.0.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini
.
chemax (14.02.2013 / 23:50)
пробовал непомогло сейчас сделал yum update
Imagick из pecl поставил? Ту команду выполнишь в терминале после установки imagick
.
Screamer (14.02.2013 / 23:26)
Да просто попробуй введи pecl install imagick
ура помогло но 1 синтаксис ошибка php -m
PHP: syntax error, unexpected '"' in /etc/php.d/apc.ini on line 1
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
Всего: 40