1.apache安装错误error: APR not found解决方法
分别下载apr apr-util pcre工具
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
tar -xzvf apr-1.4.5.tar.gz
tar -xzvf apr-util-1.3.12.tar.gz
tar -xzvf pcre-8.10.zip
安装apr-1.4.5
进入安装目录
cd /opt/apr-1.4.5/
安装及编译
./configure --prefix=/usr/local/apr
make && make install
cd /opt/apr-util-1.3.12/
安装及编译
./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
make && make install
cd /opt/pcre-8.10/
安装及编译
./configure --prefix=/usr/local/pcre
make && make install
安装pcre报错误
linux 安装pcre报错“You need a C++ compiler for C++ support.”
sudo apt-get install build-essential
Ubuntu默认并不提供C/C++的编译环境。
cd /opt/httpd-2.4.10/
安装及编译
需要用--with参数指定我们刚才安装的依赖包位置
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
make && make install