Re: [PHP] Imagick installation issue
Ok, I was having trouble posting to the 'php-general@lists.php.net' mailing list directly. All my posts are bounced. I found this forum and so I will continue here since I still have had no luck and my entire project hangs on some sort of graphic support. The server admin told me GD support is not possible at this point so I am trying to install imagick on the server. Regrading imagemagick-dev. I am not sure what that is. I haven't seen any info on it while researching imagemagick. In regards to ImageMagick itself, I did the following... tar xvfz ImageMagick.tar.gz cd ImageMagick-6.4.1 ./configure make make install /usr/local/bin/convert logo: logo.gif logo.gif is created This is how I created imagick (instructions from http://us.php.net/manual/en/install.pecl.phpize.php)... cd imagick-2.1.1 phpize ./configure make make install I didn't see anything that set off a red flag in the the output messages, but then again I didn't understand 1/2 of the output messages. Other than a lack of errors, I am not sure what to expect from make. bornplaydie-2 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 -- View this message in context: http://www.nabble.com/Imagick-installation-issue-tp17711827p18029226.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Imagick installation issue
BornPlayDie wrote: Yes, I forgot to mention, I did restart apache. Date: Sat, 7 Jun 2008 20:21:26 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Imagick installation issue CC: php-general@lists.php.net On 6/7/08, BornPlayDie [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Imagick installation issue
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) How did you create the imagick.so file? Did you reconfigure php? What configure command (and arguments) did you use? Did you get any errors when you ran configure or make? Normally when you try to build a module like this you need the -dev or -devel or -headers package (ie imagemagick-dev or -devel or -headers depending on how they decided to name it). Do you have that installed? -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Imagick installation issue
On 6/7/08, BornPlayDie [EMAIL PROTECTED] 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 -- Bastien Cat, the other other white meat
RE: [PHP] Imagick installation issue
Yes, I forgot to mention, I did restart apache. Date: Sat, 7 Jun 2008 20:21:26 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Imagick installation issue CC: php-general@lists.php.net On 6/7/08, BornPlayDie [EMAIL PROTECTED] 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 -- Bastien Cat, the other other white meat _ Instantly invite friends from Facebook and other social networks to join you on Windows Live™ Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends