When you run ./configure, what options are you giving it? Can you post them?
On Fri, 2003-06-13 at 17:02, Peter Shawe wrote: > Hi, > > I'm installing Apache/MySQL/PHP on a RedHat 9 box, to replace a > similarly configured RedHat 7 box. > > I did a clean install of RedHat 9. > > I installed Apache from source (v1.3.27); no problems. > > I installed MySQL from RPM's (v4.0.13); no problems. > > Trying to build PHP (v4.3.2) from source; can't get beyond ./configure > > Initially ./configure would go thru a large number of test before > halting like this > > ======================================= > <many tests snipped...> > checking for sys/utsname.h... yes > checking for sys/ipc.h... yes > checking for fopencookie... yes > configure: error: can not run test program while cross compiling > ======================================= > > Having read all the docs I could get, FAQs, Usenet archives and > mailing list archives the best idea I could find was delete > ./configure and recreate it with buildconfig. I did that and now > ./configure halts like this (the complete output) > > ======================================= > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... configure: error: cannot run > C > compiled programs. > If you meant to cross compile, use `--host'. > See `config.log' for more details. > ======================================= > > The common theme is cross compiling; but I'm not trying to cross > compile. The compiler is gcc (v3.2.2). > > I did find a PHP bug database entry which matched the second sceanrio > above. But there was no details on what caused it and it ends with > "Fixed in current CVS". Only that was Feb 2002. > > Any ideas are welcome at this stage. I'm stumped! > > TIA > > Peter. > > -- > ========================================================================== > Peter Shawe PGP KeyID: 0x4BC57795 > Dublin, Ireland -- Bob Cochran Greenbelt, Maryland, USA Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html
signature.asc
Description: This is a digitally signed message part