LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-27-2006, 07:06 AM   #1
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
Compiing php 5 Lex: command not found


I'm trying to get php5 to work on suse 10.

When compiling I get the message LEX: command not found.

Am I missing some tools.

Here's the log


blackdog:/mydata/php5/php-5.1.2 # ./configure --prefix=/usr/local/php5\
> --with-apxs2=/usr/local/apache2/bin/apxs\
> --with-libxml-dir=/usr/local/lib --with-zlib\
> --with-zlib-dir=/usr/local/lib \
> --with-mysqli=/usr/bin/mysql_config\
> --with-gd --enable-soap --enable-sockets \
> --with-jpeg-dir=/usr --enable-exif
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... /usr/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... 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 (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

blackdog:/mydata/php5/php-5.1.2 #

I don't want to go back to php4.

Mysql V5 and apache 2 are both working perfectly.

Thanks

Cheers

-K
 
Old 03-27-2006, 07:47 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Try to install flex.

EDIT: if installed, maybe you need to specify the path in a prefix (it's in /usr/bin on my system) or install flex-devel (if existent).

Last edited by abisko00; 03-27-2006 at 07:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command not found ekdya Debian 2 03-13-2006 01:06 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
usercp.php not found scorpatron LQ Suggestions & Feedback 7 11-25-2003 08:38 PM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM
Command not found HwzrHlslndr Linux - General 14 12-31-2002 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration