当前位置: 技术问答>linux和unix
Redhat linux 9下安装apache 安装出现错误!请教!!
来源: 互联网 发布时间:2015-08-13
本文导语: #tar -zxvf apache_1.3.26.tar.gz #mv apache_1.3.26.tar.gz apache #cd apache #./configure --prefix=/usr/local/apache --enable-module=so 执行后出现问题显示: ... +configured for linux platform Error=could not find any of these C compilers anywhere in ...
#tar -zxvf apache_1.3.26.tar.gz
#mv apache_1.3.26.tar.gz apache
#cd apache
#./configure --prefix=/usr/local/apache --enable-module=so
执行后出现问题显示:
...
+configured for linux platform
Error=could not find any of these C compilers
anywhere in your Parth:gcc cc acc c89
configure terminated
然后执行
#make
(显示第二行报错)
#make install
(显示第二行报错)
#mv apache_1.3.26.tar.gz apache
#cd apache
#./configure --prefix=/usr/local/apache --enable-module=so
执行后出现问题显示:
...
+configured for linux platform
Error=could not find any of these C compilers
anywhere in your Parth:gcc cc acc c89
configure terminated
然后执行
#make
(显示第二行报错)
#make install
(显示第二行报错)
|
安装系统的时候可能没装开发工具,所以没有编译器,需要安装gcc,之后才能装apache
|
先安装GCC
|
安装光盘里有,如果没有安装光盘,到网上去下载一个:
ftp://ftp.linuxforum.net/RPM/redhat/9/en/os/i386/RedHat/RPMS/gcc-3.2.2-5.i386.rpm
#rpm -ivh gcc-3.2.2-5.i386.rpm
ftp://ftp.linuxforum.net/RPM/redhat/9/en/os/i386/RedHat/RPMS/gcc-3.2.2-5.i386.rpm
#rpm -ivh gcc-3.2.2-5.i386.rpm
|
Redhat linux 9你选择的是何种方式安装???是服务器还是全部安装,先找找有没有APACHE