Forum Moderators: coopster

Message Too Old, No Replies

Problems compiling PHP with ImageMagick

Stupid error

         

ahmedtheking

11:34 am on Mar 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've done this for a few hours today, but I'm really confused. The error is:

checking for ImageMagick / MagickWand in provided path... found in /Users/xserve1/ImageMagick/
checking for ImageMagick / MagickWand 6.3.1 or greater with /Users/xserve1/ImageMagick//bin/Wand-config... 6.3.1
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/jp2/src: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/jp2/src/libjasper: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/jbig: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/lcms: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/lcms/src: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/magick: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/png: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/tiff: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/ttf: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/ttf/objs: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/wand: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/wmf: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/wmf/src: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
./configure: line 1: cd: $MAGICK_HOME/xml: No such file or directory
./configure: line 1: cd: $MAGICK_HOME: No such file or directory
checking for MagickSetImageTicksPerSecond in -lWand... no
configure: error: There is something wrong. Please check config.log for more information.

-----

The config script is:

./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info --with-config-file-path=/opt/local/etc --enable-calendar --with-iconv=/opt/local --enable-exif --enable-ftp --enable-wddx --with-zlib=/opt/local --with-libxml-dir=/opt/local --with-gettext=/opt/local --with-xml --with-expat-dir=/opt/local --with-xmlrpc --enable-soap --enable-filepro --enable-bcmath --enable-trans-sid --enable-mbstring --enable-dbx --enable-dba --with-openssl=/opt/local --with-mhash=/opt/local --with-mcrypt=/opt/local --with-tidy=/opt/local --with-xsl=/opt/local --with-imap=/opt/local --with-imap-ssl=/opt/local --with-curl=/opt/local --with-gd --with-jpeg-dir=/opt/local --with-png-dir=/opt/local --with-tiff-dir=/opt/local --with-freetype-dir=/opt/local --enable-sqlite-utf8 --with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr --with-apxs=/usr/sbin/apxs --with-snmp=/usr --with-mysql=/opt/local/var/db/dports/ build /_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/ work/ mysql5 --with-pdo-mysql=/opt/local/bin/mysql_config5 --with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock --with-mysqli=/opt/local/bin/mysql_config5 --with-pear=/opt/local/lib/php --with-magickwand=/Users/xserve1/ImageMagick

-----

And config.log reports:

configure:52273: checking for MagickSetImageTicksPerSecond in -lWandconfigure:52294: gcc -o conftest -no-cpp-precomp -no-cpp-precomp -liconv -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/lib -L/lib -L/bzlib -L/bzlib -L/jp2 -L/jp2 -L/libjasper -L/libjasper -L/.libs -L/.libs -L/libjbig -L/libjbig -L/jpeg -L/jpeg -L/src -L/src -L/magick -L/magick -L/png -L/png -L/libtiff -L/libtiff -L/objs -L/objs -L/wand -L/wand -L/xml -L/xml -L/zlib -L/zlib -L/X11R6/lib -L/X11R6/lib conftest.c -lWand -lMagick -llcms -lfreetype -ljpeg -lbz2 -lz -lpthread -lm -lpthread -lWand -lMagick -L/Users/xserve1/ImageMagick//lib -L$MAGICK_HOME/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -L$MAGICK_HOME/bzlib -L$MAGICK_HOME/jp2 -L$MAGICK_HOME/jp2/src/libjasper -L$MAGICK_HOME/jp2/src/libjasper/.libs -L$MAGICK_HOME/jbig/libjbig -L$MAGICK_HOME/jpeg -L$MAGICK_HOME/lcms/src -L$MAGICK_HOME/lcms/src/.libs -L$MAGICK_HOME/magick -L$MAGICK_HOME/magick/.libs -L$MAGICK_HOME/png -L$MAGICK_HOME/png/.libs -L$MAGICK_HOME/tiff/libtiff -L$MAGICK_HOME/ttf/objs -L$MAGICK_HOME/ttf/objs/.libs -L$MAGICK_HOME/wand -L$MAGICK_HOME/wand/.libs -L$MAGICK_HOME/wmf/src -L$MAGICK_HOME/wmf/src/.libs -L$MAGICK_HOME/xml -L$MAGICK_HOME/xml/.libs -L$MAGICK_HOME/zlib -L/X11R6/lib -lfreetype -L/lib
-lldap -llber -lssl -lcrypto -lpam -liconv -liconv -lintl -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lssl -lcrypto -lz -lz -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lMagick -llcms -lfreetype -ljpeg -lbz2 -lz -lm -lWand -lMagick -lfreetype 1>&5
/usr/bin/ld: warning -L: directory name (/lib) does not exist
/usr/bin/ld: warning -L: directory name (/lib) does not exist
/usr/bin/ld: warning -L: directory name (/bzlib) does not exist
/usr/bin/ld: warning -L: directory name (/bzlib) does not exist
/usr/bin/ld: warning -L: directory name (/jp2) does not exist
/usr/bin/ld: warning -L: directory name (/jp2) does not exist
/usr/bin/ld: warning -L: directory name (/libjasper) does not exist
/usr/bin/ld: warning -L: directory name (/libjasper) does not exist
/usr/bin/ld: warning -L: directory name (/.libs) does not exist
/usr/bin/ld: warning -L: directory name (/.libs) does not exist
/usr/bin/ld: warning -L: directory name (/libjbig) does not exist
/usr/bin/ld: warning -L: directory name (/libjbig) does not exist
/usr/bin/ld: warning -L: directory name (/jpeg) does not exist
/usr/bin/ld: warning -L: directory name (/jpeg) does not exist
/usr/bin/ld: warning -L: directory name (/src) does not exist
/usr/bin/ld: warning -L: directory name (/src) does not exist
/usr/bin/ld: warning -L: directory name (/magick) does not exist
/usr/bin/ld: warning -L: directory name (/magick) does not exist
/usr/bin/ld: warning -L: directory name (/png) does not exist
/usr/bin/ld: warning -L: directory name (/png) does not exist
/usr/bin/ld: warning -L: directory name (/libtiff) does not exist
/usr/bin/ld: warning -L: directory name (/libtiff) does not exist
/usr/bin/ld: warning -L: directory name (/objs) does not exist
/usr/bin/ld: warning -L: directory name (/objs) does not exist
/usr/bin/ld: warning -L: directory name (/wand) does not exist
/usr/bin/ld: warning -L: directory name (/wand) does not exist
/usr/bin/ld: warning -L: directory name (/xml) does not exist
/usr/bin/ld: warning -L: directory name (/xml) does not exist
/usr/bin/ld: warning -L: directory name (/zlib) does not exist
/usr/bin/ld: warning -L: directory name (/zlib) does not exist
/usr/bin/ld: warning -L: directory name (/X11R6/lib) does not exist
/usr/bin/ld: warning -L: directory name (/X11R6/lib) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/lib) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/bzlib) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/jp2) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/jp2/src/libjasper) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/jp2/src/libjasper/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/jbig/libjbig) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/jpeg) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/lcms/src) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/lcms/src/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/magick) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/magick/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/png) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/png/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/tiff/libtiff) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/ttf/objs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/ttf/objs/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/wand) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/wand/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/wmf/src) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/wmf/src/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/xml) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/xml/.libs) does not exist
/usr/bin/ld: warning -L: directory name ($MAGICK_HOME/zlib) does not exist
/usr/bin/ld: warning -L: directory name (/X11R6/lib) does not exist
/usr/bin/ld: warning -L: directory name (/lib) does not exist
/usr/bin/ld: can't locate file for: -llcms
collect2: ld returned 1 exit status
configure: failed program was:
#line 52283 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char MagickSetImageTicksPerSecond();

int main() {
MagickSetImageTicksPerSecond()
; return 0; }

This is a very very very long post and I totally understand if it's trimmed, so if anyone wants, I can email it to them? Please help, this is really driving me up the wall!

[edited by: dreamcatcher at 11:47 am (utc) on Mar. 14, 2007]
[edit reason] Fixed slight side scroll [/edit]

eelixduppy

12:50 pm on Mar 14, 2007 (gmt 0)



It seems like the installation is off a bit. Read up on the Installation [us2.php.net] to see if you followed the steps. It seems like there may be a directory setting off and it cannot find the correct files.

ahmedtheking

3:44 pm on Mar 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the thing is, if I bash: echo $IMAGICK_HOME; it returns the right location!