当前位置: 技术问答>linux和unix
linux配置apache2.2.16的问题
来源: 互联网 发布时间:2016-09-19
本文导语: ./configure --prefix=/usr/apache --enable-so的时候报错: configure: error: in `/root/apache/httpd-2.2.16/srclib/apr': configure: error: no acceptable C compiler found in $PATH 第二错网上都说是缺少gcc,并列出来是 libf2c-3.3.2-1.i386.rpm libstdc++-deve...
./configure --prefix=/usr/apache --enable-so的时候报错:
configure: error: in `/root/apache/httpd-2.2.16/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
第二错网上都说是缺少gcc,并列出来是
libf2c-3.3.2-1.i386.rpm
libstdc++-devel-3.3.2-1.i386.rpm
glibc-kernheaders-2.4-8.36.i386.rpm
glibc-headers-2.3.2-101.i386.rpm
glibc-devel-2.3.2-101.i386.rpm
gcc-objc-3.3.2-1.i386.rpm
binutils-2.14.90.0.6-3.i386.rpm
gcc-3.3.2-1.i386.rpm
gcc-c++-3.3.2-1.i386.rpm
automake14-1.4p6-7.noarch.rpm
但是我的安装盘里根本找不到这些文件,我的系统是centos5.4。高手帮忙解决下,谢谢了
configure: error: in `/root/apache/httpd-2.2.16/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
第二错网上都说是缺少gcc,并列出来是
libf2c-3.3.2-1.i386.rpm
libstdc++-devel-3.3.2-1.i386.rpm
glibc-kernheaders-2.4-8.36.i386.rpm
glibc-headers-2.3.2-101.i386.rpm
glibc-devel-2.3.2-101.i386.rpm
gcc-objc-3.3.2-1.i386.rpm
binutils-2.14.90.0.6-3.i386.rpm
gcc-3.3.2-1.i386.rpm
gcc-c++-3.3.2-1.i386.rpm
automake14-1.4p6-7.noarch.rpm
但是我的安装盘里根本找不到这些文件,我的系统是centos5.4。高手帮忙解决下,谢谢了
|
你的linux是可以和外网联通 可是好像无法进行域名解析。
按我说的来试试
echo "nameserver 8.8.8.8" > /etc/resolv.conf
然后执行
yum clean all
再安装
yum -y install httpd
按我说的来试试
echo "nameserver 8.8.8.8" > /etc/resolv.conf
然后执行
yum clean all
再安装
yum -y install httpd