Re: building imagick fails every time?
| From: | Rasmus Lerdorf | Date: | Sun, 08 May 2011 23:02:37 +0000 |
| Subject: | Re: building imagick fails every time? | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8235@lists.php.net to get a copy of this message | ||
On 05/08/2011 02:35 PM, Greg Beaver wrote:
Hi, I've been trying unsuccessfully to build imagick on ubuntu with PHP 5.3.2 for over a year off and on, and have reached a point where I absolutely need it to freakin build. The thing is looking for libImath.la, but I only have libImath.a. Can ANYONE shed light on why I get this error? I get it with both the latest stable and the new beta. I also am unable to build imagick from source because of the exact same *$(@#&**(& error. I realize this is not a pecl error, but I can't find any resources or help from the ubuntu end, and hoped that someone on the PHP end had encountered this before and could at least point me at a solution.Let's see. I have an Ubuntu box sitting here. apt-get install libmagickwand-dev That should pull in a bunch of deps. 3:55pm htpc:~/pecl/imagick/trunk> phpize Configuring for:
PHP Api Version: 20090626 Zend Module Api No: 20090626Zend Extension Api No: 220090626 configure.in:3: warning: prefer named diversions configure.in:3: warning: prefer named diversions 3:55pm htpc:~/pecl/imagick/trunk> ./configure --with-php-config=/usr/local/bin/php-config ... 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/bin/MagickWand-config checking if ImageMagick version is at least 6.2.4... found version 6.6.2 Q16 checking for MagickWand.h header file... found in /usr/include/ImageMagick/wand/MagickWand.h checking PHP version is at least 5.1.3... yes. found 5.3.7-dev ... Looks good. 3:57pm htpc:~/pecl/imagick/trunk> make ... bin/bash /home/rasmus/pecl/imagick/trunk/libtool --mode=link cc -DPHP_ATOM_INC -I/home/rasmus/pecl/imagick/trunk/include -I/home/rasmus/pecl/imagick/trunk/main -I/home/rasmus/pecl/imagick/trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/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 /home/rasmus/pecl/imagick/trunk/modules imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lltdl 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 /usr/lib/libMagickWand.so /usr/lib/libMagickCore.so /usr/lib/liblcms.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/liblqr-1.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp /usr/lib/libltdl.so -Wl,-soname -Wl,imagick.so -o .libs/imagick.so creating imagick.la (cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la) /bin/bash /home/rasmus/pecl/imagick/trunk/libtool --mode=install cp ./imagick.la /home/rasmus/pecl/imagick/trunk/modules cp ./.libs/imagick.so /home/rasmus/pecl/imagick/trunk/modules/imagick.so cp ./.libs/imagick.lai /home/rasmus/pecl/imagick/trunk/modules/imagick.la Compiled nicely. make install and add it to my php.ini. Quick test. It works. So, are you sure your Ubuntu box is sane? This is on a relatively clean Ubuntu natty box running xbmc. -Rasmus