Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-18-2004, 01:36 PM   #1
LQ Newbie
Registered: Oct 2003
Location: St. Louis, Tampa
Distribution: Mandrake 9.1
Posts: 9

Rep: Reputation: 0
configure php install error

Hi I am trying to install php5 on madrake 9.0 and I am running the following config command,

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

When I run this It runs okay and then it gets to the following section
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... mawk
checking for bison... bison -y
checking bison version... 1.875 (ok)
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2418: lex: command not found
configure: error: cannot find output from lex; giving up

I keep getting this error with lex. I was getting an error before that said I would need to install bison, so I did, and now it says checking bison version
and that works okay.

Can anyone out there please tell me what I might be able to do to deal with this issue.


in the config file here is the lines of code starting at line 2416
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
elif test -f lexyy.c; then
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit\
1; }

Again thanks for the help
Old 08-18-2004, 03:11 PM   #2
LQ Newbie
Registered: Oct 2003
Location: St. Louis, Tampa
Distribution: Mandrake 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Hi I think I found my answer finally. I installed flex, that made that error go away, now I need to install libxml. For any one that gets this error hear is the solution now.

Thanks anyways
Old 08-18-2004, 09:19 PM   #3
LQ Newbie
Registered: Oct 2003
Location: St. Louis, Tampa
Distribution: Mandrake 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Okay I am back new error now after lots of searching I have no idea what to do.

I run my configure line from above and I get a bunch of stuff and it errors out here

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... yes
checking for OpenSSL support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
[root@localhost php-5.0.1]#

I just installed zlib and when I do a locate on zlib and libz I get this

[root@localhost /]# locate zlib
[root@localhost /]#

[root@localhost /]# locate libz
[root@localhost /]#

I tried adding --with-zlib=x where X is some of the directories above.

I have come to a stopping point and I am just stuck so all help is welcome.


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
PHP configure error: Cannot find libz ridertech Linux - Software 2 08-08-2008 10:14 PM
PHP 4.3.4 configure error willatwork Linux - Software 3 05-25-2005 02:17 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
I just don't get it - Re-configure PHP on new RH 8 install jkpalmer52 Linux - Newbie 0 11-12-2003 09:16 AM
php 4.3.2 configure error adrianmak Linux - Software 0 06-19-2003 08:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:57 AM.

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