#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安装总结的更多相关文章

  1. Linux学习笔记01—安装LInux系统

    1.首先,使用光驱或U盘或你下载的Linux ISO文件进行安装. 界面说明: Install or upgrade an existing system 安装或升级现有的系统 install sys ...

  2. Linux学习笔记2_mysql安装

    查看文件内容的命令有很多:cat, tac, more, less, head, tail, nl. cat由第一行开始显示档案内容:tac从最后一行开始显示,可以看出tac是cat的倒着写:more ...

  3. [Linux] 学习笔记之安装学习环境(sshd, lrzsz)

    紧接前一篇,在VMWare安装完Linux,这个时候我们要使用远程工具连接到虚拟机上去了,以前一直使用Putty,后来到新公司之后,推荐使用SecureCRT,使用之后,觉得效果不错,但是每次连接都失 ...

  4. Linux学习笔记:安装python

    一般linux自带python2,如果需要python3以上版本,可以不需要卸载自带的python2,二者可以共存.只需要配置相应的环境变量即可. 具体回答可以参考这篇文章 https://stack ...

  5. Linux学习笔记之——安装虚拟机后,如何启用网卡

    版本:CentOS-6.5-i386-minimal 虚拟机:vmware 11.1.2   安装完之后是看不到网卡信息的,如下:         我们编辑网卡etho的配置信息:         将 ...

  6. linux 学习笔记 mysql安装总结

    1 安装方式 下载2禁制源码安装包 mysql-5.5.27-linux2.6-i686.tar.gz 备注:2禁制额包解压缩后直接就可以使用 不用Make 2 步骤 shell>groupad ...

  7. linux学习笔记 apache php mysql +linux

    1 #yum remove httpd 2 #yum -y install httpd php-common php-devel php-gd php-mcrypt php-mbstring php- ...

  8. Linux学习笔记之安装报错/lib/ld-linux.so.2: bad ELF interpreter

    0x00 64位系统中安装了32位程序解决办法 是因为64位系统中安装了32位程序 解决方法: yum install glibc.i686 0x01 解决交叉编译环境错误 yum install l ...

  9. Linux学习笔记2-CentOS7安装tomcat8

    1.下载tomcat:apache-tomcat-8.5.16.tar.gz 下载地址:http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat ...

随机推荐

  1. react 为组件添加样式

    width/height/fontSize:可以直接写数字: style={ width:200,height:200 } 其他带数字的可以:数字+'px' style={ lineHeight:20 ...

  2. Linux基础一:Linux的安装及相关配置

    1. 计算机操作系统简介    1) 操作系统的定义:操作系统是一个用来协调.管理和控制计算机硬件和软件资源的系统程序,它位于硬件和应用程序之间.    2) 操作系统的内核的定义:操作系统的内核是一 ...

  3. 性能测试四十六:Linux 从网卡模拟延时和丢包的实现

    Linux 中模拟延时和丢包的实现 使用ifconfig命令查看网卡 Linux 中使用 tc 进行流量管理.具体命令的使用参考 tc 的 man 手册,这里简单记录一下使用 tc 模拟延时和丢包的命 ...

  4. Variable binding depth exceeds max-specpdl-size

    (setq max-specpdl-size 5) ; default is 1000, reduce the backtrace level (setq debug-on-error t) ; no ...

  5. 论文阅读笔记二十四:Rich feature hierarchies for accurate object detection and semantic segmentation Tech report(R-CNN CVPR2014)

    论文源址:http://www.cs.berkeley.edu/~rbg/#girshick2014rcnn 摘要 在PASCAL VOC数据集上,最好的方法的思路是将低级信息与较高层次的上下文信息进 ...

  6. WCF寄宿IIS

    1.创建一个简单的wcf项目 创建完成后直接运行,结果 然后进行发布 在IIS上新建一个网站,直接进行发布即可 遇到的问题 请求与通配符 mime 映射相匹配.请求映射到静态文件处理程序. 需要注意的 ...

  7. 用vi编辑文件

    原文:https://www.ibm.com/developerworks/library/l-lpic1-103-8/index.html Overview In this article, lea ...

  8. CSS3 伸缩布局盒模型

    CSS3引入的布局模式Flexbox布局,主要思想是让容器有能力让其子项目能够改变其宽度,高度,以最佳方式填充可用空间.Flex容器使用Flex项目可以自动放大与收缩,用来填补可用的空闲空间.更重要的 ...

  9. 线程 ID

    摘自<Linux 环境编程:从应用到内核> 在 Linux 中,目前的线程实现是 Native POSIX Thread Library,简称 NPTL.在这种实现下,线程又被称为轻量级进 ...

  10. Understanding about numerical stability, convergence and consistency

    In a computer simulation of the real world, physical quantities, which usually have continuous distr ...