Chinaunix

标题: 装apache时make不过去的原因? [打印本页]

作者: leewei544    时间: 2007-03-20 23:49
标题: 装apache时make不过去的原因?
在虚拟机中的LINUX系统,装apache的时候,老是make不通过..参考我们论坛里面的贴,还是找不出原因.请个位大哥帮忙看下原因,顺便给后来人参考..万分感谢...
步骤:
tar zxvf httpd-2.2.3.tar.gz
#cd httpd-2.2.3
#./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-ssl --with-ssl=/usr/local/openssl --enable-track-vars --enable-rewrite --with-z-dir=/usr/local/zlib
完成后,用#echo $?显示0
make 出现:make: ***No targets specified and no makefile found.  Stop.
再用#echo $? 就显示2了

另外我试了很多其他办法..比如换其他版本的,都没有解决..
作者: webstroller    时间: 2007-03-21 09:31
标题: 回复 1楼 leewei544 的帖子
configure时没报错?注意看下有没提示信息
作者: leewei544    时间: 2007-03-21 12:51
configure后还加了句: CC="pgcc" CFLAGS="-O2"
出现:
checking for chosen layout... Apache
checking for working mkdir -p...yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux=gnu      
checking target system type... i686-pc-linux=gnu  

Cofiguring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version:1.2.7
checking for chosen layout... apr
checking for gcc... gcc
checking for Ccompiler default output file name... configure: error: C compiler cannot create executables
See 'config.log' for more details.
configure failed for srclib/apr

问题好象就出在最后一句上面,但是什么问题..怎么解决呢。..各位帮忙啊......
作者: mcumsigscr    时间: 2007-03-21 17:13
原帖由 leewei544 于 2007-3-20 23:49 发表
在虚拟机中的LINUX系统,装apache的时候,老是make不通过..参考我们论坛里面的贴,还是找不出原因.请个位大哥帮忙看下原因,顺便给后来人参考..万分感谢...
步骤:
tar zxvf httpd-2.2.3.tar.gz
#cd httpd-2.2.3
# ...



需要安装GCC编译器。
作者: gogo407    时间: 2007-03-21 22:10
原帖由 leewei544 于 2007-3-21 12:51 发表
configure后还加了句: CC="pgcc" CFLAGS="-O2"
出现:
checking for chosen layout... Apache
checking for working mkdir -p...yes
checking build system type... i686-pc-linux-gnu
c ...

checking for Ccompiler default output file name... configure: error: C compiler cannot create executables
See 'config.log' for more details.

呵呵
see config.log




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2