Linux下解压缩
tar zxvf httpd-2.4.3.tar.gz
编译安装
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR not found. Please read the documentation.
解压缩,安装APR1.4.5
tar zxvf apr-1.4.5.tar.gz
cd apr-1.4.5
./configure
make
make install
再次编译
cd ..
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR-util not found. Please read the documentation.
解压缩,安装APR-util
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure
提示需要指定--with-apr参数
configure: error: APR could not be located. Please use the --with-apr option.
指定参数编译
./configure --with-apr=/usr/local/apr
make
make install
再次编译apache,成功
cd ..
cd httpd-2.4.3
./configure
make
make install
转载 http://blog.sina.com.cn/s/blog_6f74890d01019217.html
tar zxvf httpd-2.4.3.tar.gz
编译安装
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR not found. Please read the documentation.
解压缩,安装APR1.4.5
tar zxvf apr-1.4.5.tar.gz
cd apr-1.4.5
./configure
make
make install
再次编译
cd ..
cd httpd-2.4.3
./configure
提示如下错误信息
configure: error: APR-util not found. Please read the documentation.
解压缩,安装APR-util
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure
提示需要指定--with-apr参数
configure: error: APR could not be located. Please use the --with-apr option.
指定参数编译
./configure --with-apr=/usr/local/apr
make
make install
再次编译apache,成功
cd ..
cd httpd-2.4.3
./configure
make
make install
转载 http://blog.sina.com.cn/s/blog_6f74890d01019217.html
来源:博客园
作者:水星记Precipitation
链接:https://www.cnblogs.com/Mercury-linux/p/11441800.html