LinuxSir.cn,穿越时空的Linuxsir!

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

请教APACHE服务器安装过程中问题。

[复制链接]
发表于 2003-4-30 12:47:55 | 显示全部楼层 |阅读模式
我想在MANDRAKE9.1上搭建APACHE+PHP+MYSQL+PHPMYADMIN+ZEND的服务器,MYSQL我已经编译和安装成功了,但是到第2步配置PHP的时候,出现如下的错误,请问我该如何处理呢?

[root@peng php-4.3.1]# ./configure --with-mysql=/usr/local/mysql --with-apaxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
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 2482: lex: command not found
configure: error: cannot find output from lex; giving up
[root@peng php-4.3.1]#
 楼主| 发表于 2003-4-30 13:01:51 | 显示全部楼层
我安装完MYSQL后,接着只配置了APACHE,但是并没有编译和安装,等PHP编译和安装后再编译安装APACHE,是否我的方法错了呢
 楼主| 发表于 2003-4-30 14:31:25 | 显示全部楼层
顶一下
 楼主| 发表于 2003-4-30 15:03:01 | 显示全部楼层

请教APACHE服务器安装过程中问题。

这个帖子在网络建设版发了两三个小时了,我一直在线等,都没答复,好着急,所以就重新发在人气足点的REDHAT版,见谅啊 。

我想在MANDRAKE9.1上搭建APACHE+PHP+MYSQL+PHPMYADMIN+ZEND的服务器,MYSQL我已经编译和安装成功了,但是到第2步配置PHP的时候,出现如下的错误,请问我该如何处理呢?

[root@peng php-4.3.1]# ./configure --with-mysql=/usr/local/mysql --with-apaxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
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 2482: lex: command not found
configure: error: cannot find output from lex; giving up
[root@peng php-4.3.1]#
 楼主| 发表于 2003-4-30 16:05:19 | 显示全部楼层
对了,斑竹,我想问你关于APACHE服务器的问题,我发在网络版很久了,都没人回答,一直在等,很着急

我想在MANDRAKE9.1上搭建APACHE+PHP+MYSQL+PHPMYADMIN+ZEND的服务器,MYSQL我已经编译和安装成功了,但是到第2步配置PHP的时候,出现如下的错误,请问我该如何处理呢?

[root@peng php-4.3.1]# ./configure --with-mysql=/usr/local/mysql --with-apaxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
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 2482: lex: command not found
configure: error: cannot find output from lex; giving up
[root@peng php-4.3.1]#

请指导
发表于 2003-4-30 16:06:00 | 显示全部楼层
应该安装lex或flex包。在盘中找出来安装上就好了。。


http://rpmfind.net/linux/rpm2htm ... p;system=&arch=
 楼主| 发表于 2003-4-30 18:53:11 | 显示全部楼层
谢谢,搞定了,但是又有新问题
我的APACHE和MYSQL+PHP了,在浏览器里输入我自己机器的IP地址,可以看到测试页,但是却不能浏览其他的WEB页面,请问是什么原因呢
我已经在HTTPD。CONF文件里设置了WEB页面的地址啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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