I'm having problems installing PHP on Red Hat from the source. I installed Apache2 with this parameter

./configure --prefix=/www --enable-module=so

There wasn't any trouble so I did the make and make install. Now I'm trying to install(configure the installation) PHP with:

./configure --with-mysql --with-apxs2=/www/bin/apxs --prefix=/usr/local

And it gives no error while doing that. But whenever I try to do the make, it gives this ugly error:

...ext/libxml/libxml.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

Any suggestions on what I'm doing wrong?

    I'm still not sure what the problem was because the libphp5 wasn't found anywhere, but I did a "make clean". Then a "make install", and afterwards a " libtool --finish /path/to/my/php/libs" and it solved the problem. I'm not sure this is the right thing to do but it got my PHP working.

      Write a Reply...