源码安装过程

1.先装编译器 命令为 yum install gcc gcc-c++

2.yum install expat-devel(XML解析)

3.上网找 apr apr-util pcre 源码包下载
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.7.0.tar.gz (apr)

     wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.gz(apr-util)

     wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz (pcre)

4.下载完源码包之后开始解压,指定目录到/usr/local/src
tar -xvf 压缩包 -C /usr/local/src

             /usr/local/src   :  存放源码包 

5.分别进去源码包目录操作:
apr
./configure --prefix=/usr/local/apr
make
make install

apr-util
            ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
            make
            make install

pcre
          ./configure --prefix=/usr/local/pcre
            make
            make install

httpd
              ./configure --prefix=/usr/local/apache24 --with-apr=/usr/local/apr --with-apr-                   util=/usr/local/apr-util --with-pcre=/usr/local/pcre
                make
                make install

configure探测操作系统目标环境 检查有没有cc或gcc configure是shell脚本 生成Makefile

make 报错, 解决问题,make clean,把生成 的中间文件删掉 再 make

原文地址:https://blog.51cto.com/14239091/2380383

时间: 2024-08-01 07:03:36

源码安装过程的相关文章

mysql-5.5.28源码安装过程中错误总结

介绍一下关于mysql-5.5.28源码安装过程中几大错误总结,希望此文章对各位同学有所帮助.系统centOS 6.3 mini (没有任何编译环境)预编译环境首先装了众所周知的 cmake(yum install cmake -y) 复制代码 代码如下: ../bootstrap Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using

Linux中centos中httpd源码安装过程详解

在Linux中软件安装有两大类,一类是软件包安装,一类是源代码安装.软件包安装就是指将编译好的二进制封装成rpm包,可以直接使用rpm工具和yum工具安装.源代码安装是指没有编译成二进制,需要通过手动编译的.使用源代码安装的原因有两个,一个就是想使用最新版的软件,另一类就是想自定义其功能的. 在httpd的源码安装过程中需要用到:APR.APR-UTIL. PCRE.httpd源码安装过程:1.展开压缩文件,把压缩文件解压缩到/usr/local/src.2.在解压文件目录使用 ./config

gdb源码安装过程中的问题:no termcap library found

gdb使用源码安装的时候遇到错误:no termcap library found ./configure -->  make --> make install 解决办法,下载termcap然后源码安装:./configure -->  make --> make install 下载地址: https://ftp.gnu.org/gnu/termcap/

Linux源码安装过程中选项—prefix的作用

源码的安装一般由3个步骤组成:配置(configure).编译(make).安装(make install),具体的安装方法一般作者都会给出文档,这里主要讨论配置(configure).Configure是一个可执行脚本,它有很多选项,使用命令./configure –help输出详细的选项列表,如下: -bash-3.00# ./configure --helpUsage: configure [options] [host]Options: [defaults in brackets aft

kernel-2.6.32-431.el6.src.rpm内核源码安装过程和问题分析

一:安装内核源码包:.src.rpm和.rpm包的安装方式完全不同,可以通过rpm -qpl 查询rpm内容 #rpm -ivh kernel-2.6.32-431.el6.src.rpm warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root 直接忽略. 二:没有在/usr/src生成内核源码,原因如下: .src.rpm安装包将会在/roo

CentOS6.5+mysql5.1源码安装过程

一:先安装依赖包(不然配置的时候会报错的!) yum -y install ncurses* libtermcap* gcc-c++* 新建mysql用户 [[email protected]]# groupadd mysql [[email protected]]# useradd -g mysql -s /sbin/nologin mysql 二:获取mysql源码包 mysql官网下载源码即可 三:安装mysql [[email protected] mysql]# tar xvf mys

php5.6 源码安装过程

安装php之前需要安装好apache和mysql. (1).下载和php软件包和解压 cd /usr/local/src wget http://cn2.php.net/distributions/php-5.6.18.tar.gz/from/this/mirror -O php-5.6.18.tar.gz tar -zxvf php-5.6.18.tar.gz (2).安装GCC和各种编译工具 yum install make apr* autoconf automake gcc gcc-c+

centos apache源码安装过程记录

1.下载相关源文件 wget http://mirror.bjtu.edu.cn/apache/httpd/httpd-2.4.18.tar.gzwget http://mirrors.hust.edu.cn/apache//apr/apr-1.5.2.tar.gz wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz wget http://jaist.dl.sourceforge.net/project/pcre/

Linux下源码安装nginx服务器以及部分配置

    Nginx ("engine x") 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器.Nginx是由Igor Sysoev为俄罗斯访问量第二的Rambler.ru站点开发的,第一个公开版本0.1.0发布于2004年10月4日.其将源代码以类BSD许可证的形式发布,因它的稳定性.丰富的功能集.示例配置文件和低系统资源的消耗而闻名.2011年6月1日,nginx 1.0.4发布. Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(