免费注册 查看新帖 |

Chinaunix

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

每一次安装 Apache 都是碰到这样的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-16 12:48 |只看该作者 |倒序浏览
每一次安装 Apache 都是碰到这样的问题,请教一下大家,这是什么问题呀?应该如何解决呢?
-----------------------------------------------------------------------------------------------------
RAYS-Linux:~/Desktop/httpd-2.0.59# ./configure --prefix=/usr/local/apache2
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

Configuring 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: 0.9.12
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

论坛徽章:
0
2 [报告]
发表于 2007-06-16 12:53 |只看该作者
原帖由 yagas 于 2007-6-16 12:48 发表于 1楼  
每一次安装 Apache 都是碰到这样的问题,请教一下大家,这是什么问题呀?应该如何解决呢?
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH


1. 若你要編譯該 apache source code,你系統需要有現有的 gcc 程式可以使用。gcc 是 GNU C Compiler,為 C 的編譯器。

您的 linux distro 都會收錄該 package,安裝上 gcc package 後即可使用 gcc

2. 再者,其實 linux distro 都會提供預先可以安裝使用的 apache package,除非必要不需要 tarball source 編譯,你要的只是把 apache package 安裝上即可使用。

當然,你要安裝 gcc 甚至 linux distro 提供的 apache 相關 package 都好,你都需要具備熟悉 package 管理的功能。比方你用 debian,可能要熟悉 dpkg/apt-get 使用,fedora linux 則是使用 rpm/yum 等 package manager。

--

论坛徽章:
0
3 [报告]
发表于 2007-06-16 13:56 |只看该作者
应该是没有安装GCC编译器吧。

刚开始学的时候建议使用RPM或者DEB格式的soft

论坛徽章:
0
4 [报告]
发表于 2007-06-17 00:29 |只看该作者
--prefix=/usr/local/apache2

默认就是这个地址了,没有必要指明,安装的时候仔细看一下README
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP