PDA

View Full Version : Rebuild php error libjpeg



DhoTjai
11-05-2007, 01:54 PM
Hi all,

I'm trying to configure php with domxml, and need me to rebuild php.

I added this to configure.php


--with-dom=/usr/lib \
--with-dom-exslt=/usr/lib \
--with-dom-xslt=/usr/lib


After adding:
./build clean
./build php n

An error shows!:
configure: error: Please reinstall the libxslt >= 1.0.3 distribution

I installed libxslt:
yum install libxslt-devel

The next error after ./build php n (clean before)
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.

I installed libjpeg:
yum install libjpeg-devel

I tried to rebuild php and it still gives me:
configure: error: Problem with libjpeg.(a|so). Please check config.log for more information.


Does anyone know a solution?

Thanks in advance!

Regards,

DhoTjai

smtalk
11-28-2007, 07:40 AM
Find:

--with-jpeg-dir=/usr/local/lib \

Replace with:

--with-jpeg-dir=/usr/lib \

motobrandt
11-28-2007, 02:13 PM
I'M Having the same problem. And the changing of the directory as advised above didn't help.

Any other ideas?:confused:

paul.lkw
11-28-2007, 10:16 PM
If you are using x86-64 platform then follow the URL for a workarround, it is known to be a BUG in x86-64 in PHP-4

URL : http://bugs.php.net/bug.php?id=33685&edit=1

DhoTjai
11-29-2007, 01:52 PM
I'm getting this:


configure:33639: checking for jpeg_read_header in -ljpeg
configure:33658: gcc -o conftest -g -O2 -Wl,-rpath,/opt/lib -L/opt/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/kerberos/lib64 -L/u$
/usr/bin/ld: cannot find -lxml
collect2: ld returned 1 exit status
configure: failed program was:
#line 33647 "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 jpeg_read_header();

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