Cannot compile php 5.1.6 under Windows XP using Cygwin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Calivar

    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

  • Andy Hassall

    #2
    Re: Cannot compile php 5.1.6 under Windows XP using Cygwin

    On 5 Nov 2006 19:10:50 -0800, "James Calivar" <amheiserbush@y ahoo.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 :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • James Calivar

      #3
      Re: Cannot compile php 5.1.6 under Windows XP using Cygwin

      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" <amheiserbush@y ahoo.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 :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      Working...