码迷,mamicode.com
首页 > Web开发 > 详细

linux 学习笔记 APACHE安装总结

时间:2015-01-22 06:57:09      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

#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

linux 学习笔记 APACHE安装总结

标签:

原文地址:http://www.cnblogs.com/cici-new/p/4240588.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!