Problème pour compiler PHP

Fermé
Clém - 4 mars 2005 à 19:58
kilian Messages postés 8731 Date d'inscription vendredi 19 septembre 2003 Statut Modérateur Dernière intervention 20 août 2016 - 5 mars 2005 à 12:32
Bonjour tout le monde,
Je débute avec Linux et j'ai voulu compiler Apache et PHP sous cet OS. J'ai donc suivi à la lettre le tutorial de CCM sur le sujet mais ça ne fonctionne pas. Les erreurs apparaissent à partir de l'étape 4 du tutorial.

Je vous joins les lignes du terminal :

--------------------------------------------------------------------------
[clem@localhost php-4.3.10]$ ./configure --with-mysql --with-apache=../apache_1.3.33 --enable-track-vars
loading cache ./config.cache
checking host 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 if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... 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: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
[clem@localhost php-4.3.10]$ make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.
--------------------------------------------------------------------------

J'espère que vous pourrez m'aider, merci d'avance.
A voir également:

1 réponse

kilian Messages postés 8731 Date d'inscription vendredi 19 septembre 2003 Statut Modérateur Dernière intervention 20 août 2016 1 527
5 mars 2005 à 12:32
Salut,

Tu n'as pas déjà posé cette question il n'y a pas longtemps?
Sinon ben il te manque flex, ou bien ton configure n'arrive pas à le trouver.

Tu es sous quelle distribution?
Si tu tapes
whereis lex

Ca te donne quoi?
0