2012-09-03 4 views
1

저는 XAMPP를 사용하여 우분투 컴퓨터에 Image Magick을 설치하려고합니다. 그러나 지금까지는 행운이 없습니다. 내가 패키지 php5-imagick를 설치 해봤지만 종속성이 충족되지 것을 말한다 : 나는 그것을 설치하는 pecl를 사용하여 다음 이미지 매직 패키지를 컴파일하고 시도했습니다Imagick on XAMPP 설치 방법? [Ubuntu 12.04]

The following packages have unmet dependencies: 
php5-imagick : Depends: phpapi-20090626 

하지만 중지합니다.

lampp/bin » sudo ./pecl install imagick 
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update 
downloading imagick-3.0.1.tgz ... 
Starting to download imagick-3.0.1.tgz (93,920 bytes) 
.....................done: 93,920 bytes 
13 source files, building 
running: phpize 
grep: /opt/lampp/include/php/main/php.h: No such file or directory 
grep: /opt/lampp/include/php/Zend/zend_modules.h: No such file or directory 
grep: /opt/lampp/include/php/Zend/zend_extensions.h: No such file or directory 
Configuring for: 
PHP Api Version: 
Zend Module Api No: 
Zend Extension Api No: 
configure.in:3: warning: prefer named diversions 
configure.in:3: warning: prefer named diversions 
Please provide the prefix of Imagemagick installation [autodetect] : 
building in /tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1 
running: /tmp/pear/temp/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 whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... no 
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... /opt/lampp 
checking for PHP includes... -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib 
checking for PHP extension directory... /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626 
checking for PHP installed headers prefix... /opt/lampp/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... no 
checking for nawk... nawk 
checking if nawk is broken... no 
checking whether to enable the imagick extension... yes, shared 
checking whether to enable the imagick GraphicsMagick backend... no 
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.7.9 Q16 
checking for MagickWand.h header file... found in /usr/local/include/ImageMagick/wand/MagickWand.h 
checking PHP version is at least 5.1.3... yes. found 5.3.8 
checking for ld used by cc... /usr/bin/ld 
checking if the linker (/usr/bin/ld) is GNU ld... yes 
checking for /usr/bin/ld option to reload object files... -r 
checking for BSD-compatible nm... /usr/bin/nm -B 
checking whether ln -s works... yes 
checking how to recognize dependent libraries... pass_all 
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 dlfcn.h usability... yes 
checking dlfcn.h presence... yes 
checking for dlfcn.h... yes 
checking the maximum length of command line arguments... 1572864 
checking command to parse /usr/bin/nm -B output from cc object... ok 
checking for objdir... .libs 
checking for ar... ar 
checking for ranlib... ranlib 
checking for strip... strip 
checking if cc supports -fno-rtti -fno-exceptions... no 
checking for cc option to produce PIC... -fPIC 
checking if cc PIC flag -fPIC works... yes 
checking if cc static flag -static works... yes 
checking if cc supports -c -o file.o... 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 

creating libtool 
appending configuration tag "CXX" to libtool 
configure: creating ./config.status 
config.status: creating config.h 
running: make 
/bin/bash /tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1/include -I/tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1/main -I/tmp/pear/temp/imagick -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -o imagick_class.lo 
mkdir .libs 
cc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1/include -I/tmp/pear/temp/pear-build-root0hHzBG/imagick-3.0.1/main -I/tmp/pear/temp/imagick -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o 
In file included from /tmp/pear/temp/imagick/imagick_class.c:21:0: 
/tmp/pear/temp/imagick/php_imagick.h:40:17: fatal error: php.h: No such file or directory 
compilation terminated. 
make: *** [imagick_class.lo] Error 1 
ERROR: `make' failed 

나는 php.h 파일이 없거나, 또는 왜 실종 모르겠어요.

또한 a topic I found from two years ago으로 시도했지만, the source code을 다운로드하면 configure 파일이 없어 계속할 수 없습니다.

나는 아무것도 작동하지 않아서 필사적이며 다른 PHP 버전이 설치되어 있습니다 (5.4.6).하지만 그게 문제라고 생각하지 않습니다.

사람들이이 문제에 대해 의견을 나눌 수 있습니까?

감사합니다.

답변

1

우분투는 데비안을 기반으로하며 데비안과 싫어하는 한 가지 점은 때로는 공식 (안정적인) 패키지가 공급 업체가 제공하는 것보다 너무 뒤떨어져 있다는 것입니다. 다행히도 데비안과 우분투 모두에서 가장 인기있는 패키지 (예 : mysql, PHP 등)로 최신 상태를 유지하는 dotdeb 저장소를 사용할 수 있습니다. 익숙하지 않은 경우 dotdeb repository (또는 직접 on their setup instructions)을보고 PHP 및 관련 항목을 설치하십시오. 패키지가 누락 된 경우 여기 step-by-step instruction on how to make one yourself.

1

고급 패키징 도구를 사용하지 않는 이유는 무엇입니까? 에 대한

설치 설정 우분투 12.04 :

  1. 설치 ImageMagick이 :

    sudo apt-get install imagemagick

  2. 설치 ImageMagick과의 PECL 확장 :

    sudo apt-get install php5-imagick