免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2205 | 回复: 12
打印 上一主题 下一主题

php-4.3.10 编译后的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-15 05:49 |只看该作者 |倒序浏览
[root@xiaoye mysql-5.0.18]# cd /home/xiaoye/php-4.
php-4.3.10         php-4.3.10.tar.gz  php-4.4.2
[root@xiaoye mysql-5.0.18]# cd /home/xiaoye/php-4.3.10
[root@xiaoye php-4.3.10]# ./configure --prefix=/usr/php/
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... no
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 parser

s.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up

请帮忙看看这是怎么回事呀

论坛徽章:
0
2 [报告]
发表于 2006-06-15 12:25 |只看该作者
怎么没人回答呀

论坛徽章:
0
3 [报告]
发表于 2006-06-15 13:09 |只看该作者
你看是不是没有安装flex的缘故

论坛徽章:
0
4 [报告]
发表于 2006-06-15 13:43 |只看该作者
你必须装bison flex中的一个,这个是编译器解释文法的工具。

论坛徽章:
0
5 [报告]
发表于 2006-06-15 15:21 |只看该作者
我已经把bison装上了
可安装的时候还是出现前面同样的错误。

论坛徽章:
0
6 [报告]
发表于 2006-06-15 15:25 |只看该作者
原帖由 knuoxy 于 2006-6-15 15:21 发表
我已经把bison装上了
可安装的时候还是出现前面同样的错误。


安裝後 flex 的路徑是否正確呢..
若它說找不到而你又安裝了, 應該是路徑不對. 可能你沒有把flex的位置加入到路徑內.

论坛徽章:
0
7 [报告]
发表于 2006-06-15 15:44 |只看该作者
啊楼上的说只需要装一个呀
我装了bison 但没装flex的。
   怎么把flex的位置加入到路径内请指示下。
谢谢了。。

论坛徽章:
0
8 [报告]
发表于 2006-06-15 15:52 |只看该作者
[root@xiaoye php-4.3.10]# cd /usr/bison/
[root@xiaoye bison]# ls -l
鎬荤敤閲?16
drwxr-xr-x    2 root     root         4096 Jan  8 10:48 bin
drwxr-xr-x    2 root     root         4096 Jan  8 10:48 info
drwxr-xr-x    3 root     root         4096 Jan  8 10:48 man
drwxr-xr-x    4 root     root         4096 Jan  8 10:48 share
这是bison所安装的目录

论坛徽章:
0
9 [报告]
发表于 2006-06-15 16:54 |只看该作者
怎么没人来呀进来帮忙看看先谢谢了?来点人气吧。
帮帮忙看看我在线等了好几个小时了。

[ 本帖最后由 knuoxy 于 2006-6-15 17:49 编辑 ]

论坛徽章:
0
10 [报告]
发表于 2006-06-15 17:50 |只看该作者
帮帮忙看看先吧好不。
安装完了bison后 还是出现刚才那个错误。
  到底怎么回事。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP