linux 学习笔记 APACHE安装总结

#cd /usr/local

#mkdir APACHE

#tar zxvf /usr/etc/DEV/httpd-2.2.9.tar.gz

#mv httpd-2.2.9/* .

#rm -rf httpd-2.2.9/

#./configure

<---prefix参数 含义:把文件放在/opt/APACHE/apache文件夹之下卸载时只要删除这个文件即可

            --prefix =/opt/APACHE/apache

           --with-included-apr

           --enable-so

            --enable-deflate=shared

           --enable-expire=shared

           --enable-headers=shared

             --enable-rewrite=shared

            --enable-stactic-support

 

出现错误: checking for gcc ...no

             checking for cc ...no

             checking for d.exe ...no

              configure :error:no acceplatable c compiler found in $PATH

原因没装 gcc编译器

原理解析 gcc环境没有安装 需要安装gcc

先安装gcc需要的软件包

1 rpm -Uvh glibc-kernheadless-2.4-9.1.103.EL.i386.rpm

2 rpm -Uvh glibc-headers-2.3.4-2.i386.rpm

3 rpm -Uvh glibc-devel-2.3.4-2.i386.rpm

4 rpm -Uvh cpp-3.4.3-9.El4.i386.rpm

5 rpm -Uvh make-3.8.0-5.i386.rpm

6 rpm -Uvh gcc-3.4.3-9.El4.i386.rpm

安装gcc -c++所需要的软件包

7 rpm -Uvh libstdc++ -devel-3.4.3-9.EL4.i386.rpm

8 rpm -Uvh compat-gcc-32-3.2.3-47.3.i386.rpm

9 rpm -Uvh compat-gcc-32-C++_3.2.3-47.3.i386.rpm

备注

 下载网站 下载后复制到以下路径

G:\Program Files\Red Hat Enterprise Linux 4\

Exchange Data\Other tools\gcc

3)进入linux 4系统

#cp /mnt/hgfs/Exchange \Data/Other \tools/要复制的rpm名 /usr/etc/DEV/other tools/gcc

#cd /usr/etc/DEV/Other tools/gcc

4)执行rpm命令

4.1/4.2/4.3/4.4/4.5/

4.6 执行该命令出错

#error :failed dependenceies

cpp:3.4.4-9EL4 is needed by gcc-3.4.3-9.EL4.I386

使用--nodeps参数  不依赖其他安装包

#rpm -ivh --nodesps libstdc++-devel-3.4.3-9.

EL4.I386.rpm

出现信息  Preparing ...

installing package libstdc++-devel-3.5.3.3

needs 19mb on the filesystem

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。