View Full Version : PHP Error
snet
2004-09-03, 01:50 PM CDT
Whenever I type ./configure to start the installation of PHP it gives the following error:
Checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
Does anyone know how to fix this?
Thanks.
tashirosgt
2004-09-03, 01:59 PM CDT
See if lex is on your machine. On the FC1 machine I'm at now, it is /usr/bin/lex which is a link to /usr/bin/flex.
If the file is present then the problem is probably with your path. Use the command
echo $PATH
or the command
env
to see that /usr/bin is in you PATH.
kosmosik
2004-09-03, 02:03 PM CDT
% apt-get install flex
you are missing flex package...
fjleal
2004-09-03, 05:39 PM CDT
Whenever I type ./configure to start the installation of PHP it gives the following error:
Checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
Does anyone know how to fix this?
Thanks.
You probably shouldn't install PHP from source in Fedora. Use the Add/Remove Applications interface, there's an RPM with the latest PHP inyour installation ISOs.
superbnerd
2004-09-03, 06:11 PM CDT
it is also possible to just use yum or apt yum install php or apt-get install php
kosmosik
2004-09-03, 06:16 PM CDT
well I've assumed the guy here wan't to install PHP5 :) is it packaged somehow for Fedora? it should be as Fedora is bleeding edge... I've recently built (sorry no rpms now) PostgreSQL and Mono to support my projects so I can understand need of compiling anything (even hardcore things like web accessed scripting engines) myself...
ewdi
2004-09-03, 06:36 PM CDT
just a warning, many web application is broken in PHP5 :(
foolish
2004-09-04, 04:07 AM CDT
PHP5 isn't ready for prime time yet. It'll be included in Fedora once people start using it seriously.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.