免费注册 查看新帖 |

Chinaunix

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

[Web] 装apache时make不过去的原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-20 23:49 |只看该作者 |倒序浏览
在虚拟机中的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了

另外我试了很多其他办法..比如换其他版本的,都没有解决..

论坛徽章:
0
2 [报告]
发表于 2007-03-21 09:31 |只看该作者

回复 1楼 leewei544 的帖子

configure时没报错?注意看下有没提示信息

论坛徽章:
0
3 [报告]
发表于 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

问题好象就出在最后一句上面,但是什么问题..怎么解决呢。..各位帮忙啊......

论坛徽章:
1
狮子座
日期:2013-12-05 16:04:37
4 [报告]
发表于 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编译器。

论坛徽章:
0
5 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP