######################################################
./configure --prefix=/usr/local/php
--with-mysql=/usr/local/mysql
--with-apache=../apache_1.3.24
--with-imap=/usr/local/imap
--with-gd=/usr/local/gd
--with-jpeg-dir=/usr
--with-png
--with-zlib
--with-config-file-path=/etc
--with-language=korean
--with-charset=euc_kr
--with-xml
--enable-versioning
--enable-url-includes
--enable-trans-id
--enable-ftp
--enable-sockets
--enable-ctype
--enable-calender
--enable-bcmath
--enable-sysvshm=yes
--enable-sysvsem=yes
--enable-versioning
--enable-inline-optimization
--enable-memory-limit=yes
--enable-track-vars
--disable-debug
##### 위 옵션을 줬는데 아래와 같이 에러가 나네요 ####
hecking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
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
[root@ns php-4.2.1]# --with-mysql=/usr/local/mysql
bash: --with-mysql=/usr/local/mysql: No such file or directory
[root@ns php-4.2.1]# --with-apache=../apache_1.3.24
bash: --with-apache=../apache_1.3.24: No such file or directory
[root@ns php-4.2.1]# --with-imap=/usr/local/imap
bash: --with-imap=/usr/local/imap: No such file or directory
[root@ns php-4.2.1]# --with-gd=/usr/local/gd
bash: --with-gd=/usr/local/gd: No such file or directory
[root@ns php-4.2.1]# --with-jpeg-dir=/usr
bash: --with-jpeg-dir=/usr: No such file or directory
이렇게 에러가 나요 ... 그래서 옵션 다지우고 ...그냥 ./configure 만해도
lex 에러가나는데 뭐때문에 그런거죠... ㅋㅋ 답좀 해주세요