Re: HELP Please. Imagick Php Wrapper Installation

From: Date: Wed, 21 Jan 2004 18:53:54 +0000
Subject: Re: HELP Please. Imagick Php Wrapper Installation
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-367@lists.php.net to get a copy of this message
I found the solution. Redhat 7.3 already have the X11 libaries (XFree86-libs-4.2.0-8.i386.rpm), but not the X11-devel (XFree86-devel-4.2.0-8.i386.rpm). So, I just went ahead and download the rpm, and install, and the compilation works. "Jonathan Hadi" <jo@axiontech.com> wrote in message news:20040121173347.60444.qmail@pb1.pair.com... > Hi, > > I have a redhat 7.3 + apache + ssl + php. I am trying to add the ImageMagic > and the Imagick php wrapper. > > I have installed the ImageMagick-5.5.7-10.i386.rpm and the > ImageMagick-devel-5.5.7-10.i386.rpm. I verified them also. > > Now, I am trying to install the Imagick php wrapper, and this is where I got > stuck. The instructions is below: > > 1) make sure the path to Magick-config (the ImageMagick configuration > script) is in your PATH environment variable > 2) cd /usr/src/php/ext > 3) untar the imagick tar > 4) if the directory created is anything other then imagick, rename it to > imagick > 5) cd /usr/src/php/ext/imagick > 6) phpize > 7) cd /usr/src/php > 8) rm ./configure > 9) ./buildconf > 10) run configure as you normally would and add --with-imagick > 11) make > 12) make install > > I did everything till step number 10. This is where I got stuck. I got this > error message: > > configure:34791: gcc -o > conftest -O2 -I/usr/local/src/openssl-0.9.7a -DLINUX=22 -DMOD_SSL=208112 -DU > SE_HSREGEX -DEAPI -Wl,-rpath,/home/cip/zimmerma/ImageMagick/BUILD/ImageMagic > k-5.5.7/magick/.libs -L/home/cip/zimmerma/ImageMagick/BUILD/ImageMagick-5.5. > 7/magick/.libs -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib > conftest.c -lMagick > -lMagick -lfreetype -lXext -lSM -lICE -lX11 -lbz2 -lz -lpthread -lm -L/usr /l > ib -L/usr/lib -L/home/cip/zimmerma/ImageMagick/BUILD/ImageMagick-5.5.7/magic > k/.libs -L/usr/X11R6/lib -L/usr/lib -L/usr/lib > -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lMagick -lfreetype -lXext -lSM -l IC > E -lX11 -lbz2 -lz -lm 1>&5 > /usr/bin/ld: cannot find -lXext > collect2: ld returned 1 exit status > configure: failed program was: > #line 34780 "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 InitializeMagick(); > > Looks like that I am going to have a problem > with -lXext -lSM -lICE -lX11 -lbz2. How can I beat this? > > Thank you. > > Jonathan Hadi

« previous php.pecl.dev (#367) next »