`
zhtch_123
  • 浏览: 85165 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

[红帽企业Linux.6.1].rhel-server-6.1安装Apache2

 
阅读更多
按照正常方式安装apache2,出现如下错误:
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


解决办法是:
1.打开RHEL 6.1安装光盘,在Packages文件夹下面,找到下面的安装包
kernel-headers-2.6.32-131.0.15.el6.i686.rpm
compat-glibc-headers-2.5-46.2.i686.rpm
compat-glibc-2.5-46.2.i686.rpm
compat-libstdc++-33-3.2.3-69.el6.i686.rpm
compat-libf2c-34-3.4.6-19.el6.i686.rpm
compat-libgcc-296-2.96-144.el6.i686.rpm
mpfr-2.4.1-6.el6.i686.rpm
cpp-4.4.5-6.el6.i686.rpm
glibc-headers-2.12-1.25.el6.i686.rpm
glibc-devel-2.12-1.25.el6.i686.rpm
libgomp-4.4.5-6.el6.i686.rpm
libstdc++-devel-4.4.5-6.el6.i686.rpm
ppl-0.10.2-11.el6.i686.rpm
cloog-ppl-0.15.7-1.2.el6.i686.rpm
gcc-4.4.5-6.el6.i686.rpm
compat-gcc-34-3.4.6-19.el6.i686.rpm
compat-gcc-34-c++-3.4.6-19.el6.i686.rpm
make-3.81-19.el6.i686.rpm
keyutils-libs-devel-1.4-1.el6.i686.rpm
libcom_err-devel-1.41.12-7.el6.i686.rpm
libsepol-devel-2.0.41-3.el6.i686.rpm
libselinux-devel-2.0.94-5.el6.i686.rpm
krb5-devel-1.9-9.el6.i686.rpm
zlib-devel-1.2.3-25.el6.i686.rpm
openssl-devel-1.0.0-10.el6.i686.rpm
libXpm-3.5.8-2.el6.i686.rpm
gd-2.0.35-10.el6.i686.rpm
freetype-2.3.11-6.el6_0.2.i686.rpm
libxml2-2.7.6-1.el6.i686.rpm
libxml2-devel-2.7.6-1.el6.i686.rpm
curl-7.19.7-26.el6.i686.rpm
libjpeg-devel-6b-46.el6.i686.rpm
libjpeg-6b-46.el6.i686.rpm
libjpeg-static-6b-46.el6.i686.rpm #需要从CentOS 6.0 rpm包中下载
libpng-1.2.44-1.el6.i686.rpm
libpng-devel-1.2.44-1.el6.i686.rpm
libpng-static-1.2.44-1.el6.i686.rpm #需要从CentOS 6.0 rpm包中下载
php-common-5.3.3-3.el6.i686.rpm
php-gd-5.3.3-3.el6.i686.rpm
gcc-c++-4.4.5-6.el6.i686.rpm
ncurses-devel-5.7-3.20090208.el6.i686.rpm
ncurses-term-5.7-3.20090208.el6.i686.rpm
ncurses-static-5.7-3.20090208.el6.i686.rpm  #需要从CentOS 6.0 rpm包中下载
perl-Pod-Escapes-1.04-119.el6.i686.rpm
perl-libs-5.10.1-119.el6.i686.rpm
perl-version-0.77-119.el6.i686.rpm
perl-Module-Pluggable-3.90-119.el6.i686.rpm
perl-Pod-Simple-3.13-119.el6.i686.rpm
perl-5.10.1-119.el6.i686.rpm
autoconf213-2.13-20.1.el6.noarch.rpm  #需要从CentOS 6.0 rpm包中下载
autoconf-2.63-5.1.el6.noarch.rpm
automake-1.11.1-1.2.el6.noarch.rpm
automake14-1.4p6-19.2.el6.noarch.rpm   #需要从CentOS 6.0 rpm包中下载
automake16-1.6.3-18.el6.1.noarch.rpm  #需要从CentOS 6.0 rpm包中下载
libtool-ltdl-2.2.6-15.5.el6.i686.rpm
libtool-ltdl-devel-2.2.6-15.5.el6.i686.rpm  #需要从CentOS 6.0 rpm包中下载
libtool-2.2.6-15.5.el6.i686.rpm
patch-2.6-6.el6.i686.rpm
bison-2.4.1-5.el6.i686.rpm

2.进入软件包存放目录,按照以下顺序进行安装,特别注意:顺序一定不能错,否则安装失败。小技巧:可以把下面的所有行按顺序一次性复制到终端命令行,
   系统会自动安装的,这样会节省很对时候,同时也避免操作错误!
rpm -ivh kernel-headers-2.6.32-131.0.15.el6.i686.rpm
rpm -ivh compat-glibc-headers-2.5-46.2.i686.rpm
rpm -ivh compat-glibc-2.5-46.2.i686.rpm
rpm -ivh compat-libstdc++-33-3.2.3-69.el6.i686.rpm
rpm -ivh compat-libf2c-34-3.4.6-19.el6.i686.rpm
rpm -ivh compat-libgcc-296-2.96-144.el6.i686.rpm
rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
rpm -ivh cpp-4.4.5-6.el6.i686.rpm
rpm -ivh glibc-headers-2.12-1.25.el6.i686.rpm
rpm -ivh glibc-devel-2.12-1.25.el6.i686.rpm
rpm -ivh libgomp-4.4.5-6.el6.i686.rpm
rpm -ivh libstdc++-devel-4.4.5-6.el6.i686.rpm
rpm -ivh ppl-0.10.2-11.el6.i686.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
rpm -ivh gcc-4.4.5-6.el6.i686.rpm
rpm -ivh compat-gcc-34-3.4.6-19.el6.i686.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-19.el6.i686.rpm
rpm -ivh make-3.81-19.el6.i686.rpm
rpm -ivh keyutils-libs-devel-1.4-1.el6.i686.rpm
rpm -ivh libcom_err-devel-1.41.12-7.el6.i686.rpm
rpm -ivh libsepol-devel-2.0.41-3.el6.i686.rpm
rpm -ivh libselinux-devel-2.0.94-5.el6.i686.rpm
rpm -ivh krb5-devel-1.9-9.el6.i686.rpm
rpm -ivh zlib-devel-1.2.3-25.el6.i686.rpm
rpm -ivh openssl-devel-1.0.0-10.el6.i686.rpm
rpm -ivh libXpm-3.5.8-2.el6.i686.rpm
rpm -ivh gd-2.0.35-10.el6.i686.rpm
rpm -ivh freetype-2.3.11-6.el6_0.2.i686.rpm
rpm -ivh libxml2-2.7.6-1.el6.i686.rpm
rpm -ivh libxml2-devel-2.7.6-1.el6.i686.rpm
rpm -ivh curl-7.19.7-26.el6.i686.rpm
rpm -ivh libjpeg-devel-6b-46.el6.i686.rpm
rpm -ivh libjpeg-6b-46.el6.i686.rpm
rpm -ivh libjpeg-static-6b-46.el6.i686.rpm
rpm -ivh libpng-1.2.44-1.el6.i686.rpm
rpm -ivh libpng-devel-1.2.44-1.el6.i686.rpm
rpm -ivh libpng-static-1.2.44-1.el6.i686.rpm
rpm -ivh php-common-5.3.3-3.el6.i686.rpm
rpm -ivh php-gd-5.3.3-3.el6.i686.rpm
rpm -ivh gcc-c++-4.4.5-6.el6.i686.rpm
rpm -ivh ncurses-devel-5.7-3.20090208.el6.i686.rpm
rpm -ivh ncurses-term-5.7-3.20090208.el6.i686.rpm
rpm -ivh ncurses-static-5.7-3.20090208.el6.i686.rpm
rpm -ivh --nodeps perl-Pod-Escapes-1.04-119.el6.i686.rpm
rpm -ivh --nodeps perl-libs-5.10.1-119.el6.i686.rpm
rpm -ivh --nodeps perl-version-0.77-119.el6.i686.rpm
rpm -ivh --nodeps perl-Module-Pluggable-3.90-119.el6.i686.rpm
rpm -ivh --nodeps perl-Pod-Simple-3.13-119.el6.i686.rpm
rpm -ivh --nodeps perl-5.10.1-119.el6.i686.rpm
rpm -ivh autoconf213-2.13-20.1.el6.noarch.rpm
rpm -ivh autoconf-2.63-5.1.el6.noarch.rpm
rpm -ivh automake-1.11.1-1.2.el6.noarch.rpm
rpm -ivh automake14-1.4p6-19.2.el6.noarch.rpm
rpm -ivh automake16-1.6.3-18.el6.1.noarch.rpm
rpm -ivh libtool-ltdl-2.2.6-15.5.el6.i686.rpm
rpm -ivh libtool-ltdl-devel-2.2.6-15.5.el6.i686.rpm
rpm -ivh libtool-2.2.6-15.5.el6.i686.rpm
rpm -ivh patch-2.6-6.el6.i686.rpm
rpm -ivh bison-2.4.1-5.el6.i686.rpm
3.其他的工作就是按照正常的安装方式安装。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics