当前位置: 技术问答>linux和unix
linux安装appache时报错
来源: 互联网 发布时间:2016-07-16
本文导语: 第一次接触linux,想在机子上安装一个appache但在安装时报一个C编译器错误。下面是我在安装时的提示信息: /home/whutsun/work/tools/httpd-2.2.14/configure --prefix=/usr/java/appd-2.2.14 checking for chosen layout... Apache checking for workin...
第一次接触linux,想在机子上安装一个appache但在安装时报一个C编译器错误。下面是我在安装时的提示信息:
/home/whutsun/work/tools/httpd-2.2.14/configure --prefix=/usr/java/appd-2.2.14
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: 1.3.9
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/java/appd-2.2.14/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
看了看这个配置文件。但是内容有点。对于我这刚开接触linux的新手来说。我真是没得办法。网上查了查。说的没有安装GCC。去网上下了几个rpm文件。但是rpm文件下来之后安装又报错。直接晕倒。
下面是这安装rpm文件过程:
[root@rmsd2009 rpm]# rpm -ivh *.rpm
warning: automake14-1.4p6-7.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cpp = 3.3.2-1 is needed by gcc-3.3.2-1.i386
libstdc++ = 3.3.2 is needed by gcc-c++-3.3.2-1.i386
gcc-c++
/home/whutsun/work/tools/httpd-2.2.14/configure --prefix=/usr/java/appd-2.2.14
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: 1.3.9
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/java/appd-2.2.14/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
看了看这个配置文件。但是内容有点。对于我这刚开接触linux的新手来说。我真是没得办法。网上查了查。说的没有安装GCC。去网上下了几个rpm文件。但是rpm文件下来之后安装又报错。直接晕倒。
下面是这安装rpm文件过程:
[root@rmsd2009 rpm]# rpm -ivh *.rpm
warning: automake14-1.4p6-7.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cpp = 3.3.2-1 is needed by gcc-3.3.2-1.i386
libstdc++ = 3.3.2 is needed by gcc-c++-3.3.2-1.i386
gcc-c++