
linux下无法安装apache;下面是我安装时的错误,不知道怎么解决,请各位大侠帮帮忙
[root@localhosthttpd-2.2.17]#./configure--prefix=/usr/local/apache2--enable-so--enabl...
[root@localhost httpd-2.2.17]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-module-so --with-MPM=workerchecking 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: 1.4.2
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/cenhoo/httpd-2.2.17/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr 展开
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: 1.4.2
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/cenhoo/httpd-2.2.17/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr 展开
8个回答
展开全部
错误是说没有找到gcc编译器,你试试把它加到你的PATH环境变量中,如果没有安装就装一下。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
也不知道你用的是什么linux系统。。。但你这个问题是因为没有c编译器的问题。
先给你两个版本
redhat:yum search gcc 然后 yum install +(你要下的gcc的版本)
ubuntu:sudo apt-get install gcc libc6-dev
先给你两个版本
redhat:yum search gcc 然后 yum install +(你要下的gcc的版本)
ubuntu:sudo apt-get install gcc libc6-dev
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
configure: error: no acceptable C compiler found in $PATH
请现学学 Linux 基础再来行不?
请现学学 Linux 基础再来行不?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
configure: error: no acceptable C compiler found in $PATH
编译环境有问,好好学学linux基础吧
编译环境有问,好好学学linux基础吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
n
centos和rh 应该是yum -y install arp
你的应该是apt-get吧!!! 好像是的 对ubuntu不太熟悉
centos和rh 应该是yum -y install arp
你的应该是apt-get吧!!! 好像是的 对ubuntu不太熟悉
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询