LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 916|回复: 5

关于php安装错误?

[复制链接]
发表于 2003-8-20 11:46:31 | 显示全部楼层 |阅读模式
请问如下错语提示是怎么回事??
[root@server2 php-4.3.2]# ./configure --with-apxs=/usr/local/apache/bin/apxs \
>               --with-config-file-path=/etc/httpd \
>               --with-mysql \
>               --with-gd \
>               --with-zlib \
>               --with-system-regex
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 ranlib... ranlib
checking whether ln -s works... yes
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 2356: lex: command not found
configure: error: cannot find output from lex; giving up
请问这问题如何解决?
发表于 2003-8-20 12:03:45 | 显示全部楼层
--with-system-regex
指定位置看?
这一句可以不要行不行?
 楼主| 发表于 2003-8-22 23:22:49 | 显示全部楼层

版主指定位置怎么指呀能不能举个例子?

我不要--with-system-regex这一句还是那样的提示.

版主指定位置怎么指呀能不能举个例子?

还有谁知道呀请回复一下谢谢了.
发表于 2003-8-23 13:10:51 | 显示全部楼层
好像是与flex包有关,
你把那个包重新装一下看。
 楼主| 发表于 2003-8-23 22:41:17 | 显示全部楼层

谢谢兄弟的帮助我按装上了flex

然后:#./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apache_1.3.28 --enable-track-vars --enable-trans-sid --with-gd
.....................................


Configuring extensions
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... no
checking for DOM XSLT support... no
checking for DOM EXSLT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... no
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
不知道这是怎么回事如何解决?

请高手回复!!!!!!!!!!!
发表于 2003-8-24 00:46:36 | 显示全部楼层
最初由 Glue 发表
好像是与flex包有关,
你把那个包重新装一下看。


对!安装flex*.rpm!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表