php-install Digest 3 Nov 2001 16:15:06 -0000 Issue 536
Topics (messages 4833 through 4834):
HELP! php 4.0.6 apache 1.3.20 mandrake linux 8.1 install
4833 by: Tony Leach
can't build PHP_4_0_7 branch
4834 by: Grigori Goronzy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
I previously ran php 4.0.6 with Windows ME with no install or config problems.
I have now set up a 'proper' server and installed mandrake linux 8.1
Apache was installed and worked first time.
I am now trying to get php installed. I am a Linux newbie. I downloaded the
source and checked that mod_so is enabled. I then followed these instructions:
$ gunzip -c php-4.0.6.tar.gz | tar xf -
$ cd php-4.0.6
$ ./configure --with-mysql --with-pgsql --with-apxs
The configure fails. Here is the log:
===================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:1359: checking for a BSD compatible install
configure:1412: checking whether build environment is sane
configure:1469: checking whether make sets ${MAKE}
configure:1508: checking for working aclocal
configure:1521: checking for working autoconf
configure:1534: checking for working automake
configure:1547: checking for working autoheader
configure:1560: checking for working makeinfo
configure:1590: checking whether to enable maintainer-specific portions of
Makefiles
configure:1619: checking host system type
configure:1647: checking for gawk
configure:1681: checking for bison
configure:1681: checking for byacc
configure:1728: checking for gcc
configure:1841: checking whether the C compiler (gcc ) works
configure:1857: gcc -o conftest conftest.c 1>&5
configure:1883: checking whether the C compiler (gcc ) is a cross-compiler
configure:1888: checking whether we are using GNU C
configure:1897: gcc -E conftest.c
configure:1916: checking whether gcc accepts -g
configure:1948: checking how to run the C preprocessor
configure:1969: gcc -E conftest.c >/dev/null 2>conftest.out
configure:2028: checking for AIX
configure:2076: checking for gcc option to accept ANSI C
configure:2129: gcc -c -g -O2 conftest.c 1>&5
configure:2156: checking for ranlib
configure:2185: checking whether gcc and cc understand -c and -o together
configure:2200: gcc -c conftest.c -o conftest.o 1>&5
configure:2201: gcc -c conftest.c -o conftest.o 1>&5
configure:2206: cc -c conftest.c 1>&5
configure:2208: cc -c conftest.c -o conftest.o 1>&5
configure:2209: cc -c conftest.c -o conftest.o 1>&5
configure:2236: checking whether ln -s works
configure:2260: checking for flex
configure:2294: checking for yywrap in -ll
configure:2313: gcc -o conftest -g -O2 conftest.c -ll 1>&5
/usr/bin/ld: cannot find -ll
collect2: ld returned 1 exit status
configure: failed program was:
#line 2302 "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 yywrap();
int main() {
yywrap()
; return 0; }
configure:2337: checking lex output file root
================================================
HELP! What can be wrong with my configuration ? Is it because I am not
starting with the .gz file in the right place? I just put it in a download
directory and uncompressed it there.
Any help would be appreciated.
Tony
: wordwrap web development
: tel. +44 131 555 3535
: fax. +44 8701 353656
: mob. +44 7768 626588
I checked out the PHP_4_0_7 branch and tried running ./buildconf. I got:
bash-2.05$ ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.52 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
rebuilding configure
./aclocal.m4:944: error: m4_defn: undefined macro: _m4_divert_diversion
./aclocal.m4:473: PHP_SUBST is expanded from...
./aclocal.m4:944: the top level
rebuilding acconfig.h
rebuilding main/php_config.h.in
./aclocal.m4:944: error: m4_defn: undefined macro: _m4_divert_diversion
./aclocal.m4:473: PHP_SUBST is expanded from...
./aclocal.m4:944: the top level
autoconf: tracing failed
bash-2.05$
same with php_4_0_7RC2 and RC3.
What can I do?
-greg
PGP signature