Ubuntu 12.04 安装Apache

安装apr
vim configure
删除: $RM ‘$cfgfile’
./configure  –prefix=/home/yeelone/usr
make && make install

#! /bin/bash
cd /usr/local/src
#yum install  -y   gcc make gcc-c++ wget pcre*
apt-get install build-essential

安装apr-utils
./configure  –prefix=/home/yeelone/usr
–with-apr=/home/yeelone/usr/bin/apr-1-config
make && make install

#download files
wget http://mirror.bit.edu.cn/apache/apr/apr-1.4.6.tar.gz
wget http://mirror.bit.edu.cn/apache/apr/apr-util-1.5.1.tar.gz
wget http://mirror.bit.edu.cn/apache/apr/apr-iconv-1.2.1.tar.gz
wget
http://sourceforge.net/projects/pcre/files/pcre/8.31/pcre-8.31.tar.gz
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.3.tar.gz

安装pcre
(确认gcc-c++有安装
Ubuntu : apt-get install
g++)
./configure –prefix=/home/yeelone/usr/pcre

#install apr
tar -xvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure –prefix=/usr/local/apr
make && make install

安装apache
./configure –prefix=/home/yeelone/usr/apahce2
–with-apr=/home/yeelone/usr/bin/apr-1-config –enable-so
–with-apr-util=/home/yeelone/usr/bin/apu-1-config
–with-pcre=/home/yeelone/usr/pcre/bin/pcre-config
make && make install

# install apr-util
cd ..
tar -xvf apr-util-1.5.1.tar.gz
cd   apr-util-1.5.1
./configure –prefix=/usr/local/apr-util
–with-apr=/usr/local/apr/bin/apr-1-config
make && make install

更多Ubuntu相关信息见Ubuntu
专题页面
http://www.linuxidc.com/topicnews.aspx?tid=2

#install apr-iconv
cd ..
tar -xvf  apr-iconv-1.2.1.tar.gz
cd apr-iconv-1.2.1
./configure –prefix=/usr/local/apr-iconv –with-apr=/usr/local/apr
make && make install

相关文章