LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-18-2004, 02:36 PM   #1
obj63
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.

Thanks
Joe

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
ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
ac_cv_prog_lex_root=lexyy
else
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit\
1; }
fi
fi

Again thanks for the help
Joe
 
Old 08-18-2004, 04:11 PM   #2
obj63
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
Joe
 
Old 08-18-2004, 10:19 PM   #3
obj63
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
/usr/share/man/man3/zlib.3.bz2
/usr/share/doc/zlib1-1.1.4
/usr/share/doc/zlib1-1.1.4/README
/usr/share/doc/zlib1-devel-1.1.4
/usr/share/doc/zlib1-devel-1.1.4/algorithm.txt
/usr/share/doc/zlib1-devel-1.1.4/ChangeLog
/usr/share/doc/zlib1-devel-1.1.4/README
/usr/share/apps/quanta/tags/php/zlib.tag
/usr/lib/python2.2/lib-dynload/zlib.so
/usr/lib/python2.2/encodings/zlib_codec.py
/usr/lib/python2.2/encodings/zlib_codec.pyc
/usr/lib/python2.2/encodings/zlib_codec.pyo
/usr/X11R6/include/X11/extensions/lbxzlib.h
/usr/include/zlib.h
/usr/include/linux/zlib.h
/usr/include/bzlib.h
/usr/include/bzlib_private.h
/lib/modules/2.4.21-0.13mdk/kernel/lib/zlib_deflate
/lib/modules/2.4.21-0.13mdk/kernel/lib/zlib_deflate/zlib_deflate.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/lib/zlib_inflate
/lib/modules/2.4.21-0.13mdk/kernel/lib/zlib_inflate/zlib_inflate.o.gz
[root@localhost /]#

[root@localhost /]# locate libz
/usr/lib/libz.so.1.1.4
/usr/lib/libzvt.so.2.3.0
/usr/lib/libzvt.so.2
/usr/lib/libz.a
/usr/lib/libz.so
/usr/lib/openoffice/program/libzip641li.so
/usr/lib/gaim/libzephyr.la
/usr/lib/gaim/libzephyr.so
/usr/java/j2re1.4.2_04/lib/i386/libzip.so
/usr/j2sdk_nb/j2sdk1.4.2/jre/lib/i386/libzip.so
/lib/libz.so.1
/lib/libz.so.1.1.4
[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.
Thanks
Joe
 
  


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


All times are GMT -5. The time now is 01:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration