сразу скажу что в *nix не силен, но есть желание во всем разобраться.
возникла потребность поставить php5, сейчас стоит php4, как в апаче все настроить вроде бы знаю,
сводится к банальному поставить php5 в систему.
Напишу что да как делал:
Вобщем скачал с php.net source php-5.1.4.tar.bz2
скопировал в папку /usr/local/src
распаковал в папку /usr/local/src/php-5.1.4
после чего ./configure --prefix=/usr --with-mysql
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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... no
checking for nawk... nawk
checking if nawk is broken... no
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none).
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
Press any key to continue...
я так понимаю это ошибка?
если делаю так:
server:/usr/local/src/php-5.1.4# ./configure --with-mysql
creating cache ./config.cache
и все как бы подвисает, причем не всегда иногда проходит(я просто уже сколько раз пробовал с разными параметрами)
просто в INSTALL все так просто расписано
5. gunzip -c php-5.x.y.tar.gz | tar xf -
6. cd php-5.x.y
7. ./configure --with-mysql
8. make
9. make install
а на деле совсем не получается...