ID:               15980
 Comment by:       servio at palacios dot com
 Reported By:      arthurkwtang at netvigator dot com
 Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux mandrake 7.2
 PHP Version:      4.1.2
 Assigned To:      hholzgra
 New Comment:

My Operative System is Linux Mandrake 7.2 and i install apache 1.3.23
and 1.3.26.

When a try install php with rpm format this fail, but the php 4.3.1
tar.gz is successful installed, the problem is mod_php4 dosn't work
with the Apache.

[EMAIL PROTECTED] php-4.3.1]# ./configure --with-apache=/usr/local/apache
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for working sed... (cached) sed
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached)
yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for ranlib... (cached) ranlib
checking whether ln -s works... (cached) yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.28 (ok)
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

what can i do?

Thanks.

Servio Palacios.


Previous Comments:
------------------------------------------------------------------------

[2002-11-15 03:50:53] [EMAIL PROTECTED]

Added a faq for this. Build faq entries can be seen here:
http://cvs.php.net/cvs.php/phpdoc/en/faq/build.xml

------------------------------------------------------------------------

[2002-09-28 14:17:46] [EMAIL PROTECTED]

why didn't you use the flex and bison rpms from the distribution?

------------------------------------------------------------------------

[2002-03-11 03:38:54] arthurkwtang at netvigator dot com

dear sir/madam,

i have installed flex and bison again. however the same problems still
occurred. (my procedure is : download the flex-2.5.4a.tar.gz and
bison-1.33.tar.gz ) then copy to /usr/local/ and go to their directory
and "./configure" and "make" and "make install".


Finally, i go to /usr/local/php-4.1.2/ 

and cd /usr/local/php-4.1.2
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql \
--enable-track-vars

:(
but the same problem is still here


thanks
Rgds,
arthur

------------------------------------------------------------------------

[2002-03-10 22:42:20] [EMAIL PROTECTED]

You need to install flex.. ask further support questions
on the mailing lists. http://www.php.net/support.php

(Reclassified as documentation problem, FAQ's build section should have
entry for this :)


------------------------------------------------------------------------

[2002-03-10 21:11:09] arthurkwtang at netvigator dot com

Dear sir/madam,

my OS is Linux Mandrake 7.2 and i install apache as my web server and
mysql as my database. (Perl is also pre loaded)

However, i tried to install PHP by use php*.tar.gz or *.rpm are both
failed. i don't know why. Isn't the computer missed some gcc (compilers
such as C compiler or others). Please give me a hand . thanks.

when i tried to install by using un-tar *.tar.gz. the error is  as
below: 
firstly, i saved the un-tar directory in /tmp/php-4.1.2/**
it is a root user too.

The error as below:

**********************************
[EMAIL PROTECTED] php-4.1.2]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
**********************************

What can i do?

thanks

Rgds,
arthur
[EMAIL PROTECTED]

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15980

-- 
Edit this bug report at http://bugs.php.net/?id=15980&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to