468,736 Members | 2,113 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,736 developers. It's quick & easy.

Cannot compile php 5.1.6 under Windows XP using Cygwin

Hi,

I'm trying to compile PHP v5.1.6 under Windows XP using cygwin. I get
the following error when I run ./configure. Can anyone help please?
$ ./configure
loading cache ./config.cache
checking for Cygwin environment... yes
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
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 whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to
regenerate
PHP parsers.
checking for gawk... gawk
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the
Zend/PHP pa
rsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3246: lex: command
not
found
configure: error: cannot find output from lex; giving up
/cygdrive/c/php-5.1.6
$
Thanks, James

Nov 6 '06 #1
2 2335
On 5 Nov 2006 19:10:50 -0800, "James Calivar" <am**********@yahoo.com.au>
wrote:
>checking for flex... lex
Suspicious - should say "flex" not "lex".
>checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3246: lex: command
not
found
configure: error: cannot find output from lex; giving up
What do you get from the command "which lex"? Do you have a shell alias for
"lex" - e.g. does "alias lex" show an existing alias?

FYI this is what I get in the same environment:

[...]
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... no
checking for pthreads_cflags...
checking for pthreads_lib...

Configuring SAPI modules
[... etc., continues as normal.]

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Nov 6 '06 #2
Hey, that worked! Thanks so much! I didn't have flex installed, but
even when I did install it, "lex" still didn't work, so I just did a
"alias lex="flex"" and it worked.

Sorry it took me a while to reply. I've been out of town and just got
back and chekced messages.

Thanks again,

James
Andy Hassall wrote:
On 5 Nov 2006 19:10:50 -0800, "James Calivar" <am**********@yahoo.com.au>
wrote:
checking for flex... lex

Suspicious - should say "flex" not "lex".
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3246: lex: command
not
found
configure: error: cannot find output from lex; giving up

What do you get from the command "which lex"? Do you have a shell alias for
"lex" - e.g. does "alias lex" show an existing alias?

FYI this is what I get in the same environment:

[...]
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... no
checking for pthreads_cflags...
checking for pthreads_lib...

Configuring SAPI modules
[... etc., continues as normal.]

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Nov 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jérôme Le Bougeant | last post: by
4 posts views Thread by Tilman Kispersky | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.