当前位置: 技术问答>linux和unix
redhat9.0使用tarball安装apache2.2configure不成功
来源: 互联网 发布时间:2016-05-05
本文导语: 我下载了httpd-2.2.10.tar.gz包进行tartool安装 安装步骤如下: #rpm -qa |grep gcc compat-gcc-7.3-2.96.118 gcc-3.4.6-10 compat-gcc-c++-7.3-2.96.118 gcc-c++-3.4.6-10 libgcc-3.4.6-10 #rpm -qa |grep make make-3.79.1-17 httpd-2.2.10.tar.gz包下载...
我下载了httpd-2.2.10.tar.gz包进行tartool安装
安装步骤如下:
#rpm -qa |grep gcc
compat-gcc-7.3-2.96.118
gcc-3.4.6-10
compat-gcc-c++-7.3-2.96.118
gcc-c++-3.4.6-10
libgcc-3.4.6-10
#rpm -qa |grep make
make-3.79.1-17
httpd-2.2.10.tar.gz包下载在/home/weauthi目录下
#cd /usr/local/src
#tar -zxvf /home/weauthi/httpd-2.2.10.tar.gz
#cd httpd-2.2.10
#./configure --prefix=/usr/local/apache2 --enable-module=so --enable-rewrite
出现如下错误:
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.3
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
然后我打开“config.log”文件
安装步骤如下:
#rpm -qa |grep gcc
compat-gcc-7.3-2.96.118
gcc-3.4.6-10
compat-gcc-c++-7.3-2.96.118
gcc-c++-3.4.6-10
libgcc-3.4.6-10
#rpm -qa |grep make
make-3.79.1-17
httpd-2.2.10.tar.gz包下载在/home/weauthi目录下
#cd /usr/local/src
#tar -zxvf /home/weauthi/httpd-2.2.10.tar.gz
#cd httpd-2.2.10
#./configure --prefix=/usr/local/apache2 --enable-module=so --enable-rewrite
出现如下错误:
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.3
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
然后我打开“config.log”文件
|
你自己先写个简单的c程序看看能不能用gcc编译
|
帮不了您的忙,友情帮顶 :)
|
apr包装了没? 版本对不对?
|
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
一般到这种情况,我感觉就很难搞定了。。遇到很多这种问题贴,最后都是没有解决。
帮顶吧。
See `config.log' for more details.
configure failed for srclib/apr
一般到这种情况,我感觉就很难搞定了。。遇到很多这种问题贴,最后都是没有解决。
帮顶吧。