Re: Imagick installation issue

From: Date: Tue, 10 Jun 2008 14:48:44 +0000
Subject: Re: Imagick installation issue
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-275187@lists.php.net to get a copy of this message
BornPlayDie wrote:
Yes, I forgot to mention, I did restart apache. Date: Sat, 7 Jun 2008 20:21:26 -0400 From: phpster@gmail.com To: bornplaydie@hotmail.com Subject: Re: [PHP] Imagick installation issue CC: php-general@lists.php.net On 6/7/08, BornPlayDie <bornplaydie@hotmail.com> wrote: I am trying to install ImageMagick and Imagick on my server. I am running the following... Apache version
               1.3.37 (Unix)
PHP version
               5.2.1
I have installed the following... ImageMagick 6.4.1 Imagick 2.1.1 I ran the convert logo test for ImageMagick and it works fine. However imagick.so will not load. I confirmed the so file is in the correct extensions dir specified by extension_dir in php.ini. I also confirmed this is the correct php.ini file. My php test file looks like this... if (!extension_loaded('imagick')) { dl("imagick.so"); if (!extension_loaded('imagick')) {
     echo "PHP IMagick will not load!";
     exit;
} } $image = new Imagick('test.jpg'); $image->thumbnailImage(100, 0); $image->writeImage('test-thumb.jpg'); header("Location: test.html"); /* display the thumbnail */ But I get the following error... Warning: dl() [function.dl <http://pimpmysnaps.com/function.dl>]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so: undefined symbol: zend_ce_iterator in /home/pimpms/public_html/test.php on line 4 PHP IMagick will not load! This is the output for ldd -r for imagick.so. There are a number of dependencies that I don't recognize and I think there may be other packages that need to be installed. undefined symbol: zend_ce_iterator (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so) undefined symbol: core_globals (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so) undefined symbol: executor_globals (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so) undefined symbol: zval_add_ref (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so) undefined symbol: OnUpdateBool (/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so) undefined symbol: zend_hash_internal_pointer_reset_ex ... (and the list goes on) Any help would be appreciated. Thanks, Mark _________________________________________________________________ It's easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow Have you tried restarting apache? its usually required if you've made changes
What system are you on? Don't they have a package manager (apt, yum, ports, etc...)? This should take care of all dependencies. -Shawn

« previous php.general (#275187) next »