今天编绎安装appce2.4时,在configure时,指定了--with-included-apr选项,出现./srclib/apr 错误,查找官方文档,apr与APR-Util在2.4版本中不在集成到里面,需要另行下载。
原文件如下:
APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.
解决办法如下:
1、下载apr与apr-uitl
wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.3.tar.gz
wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.1.tar.gz
2、解压
tar -xzvf ./apr-1.5.1.tar.gz
tar -xzvf ./apr-util-1.5.3.tar.gz
3、复制到./srclib/的apr和apr-util下(即去掉两个版本号)
cp -rf ./apr-1.4.6 ./httpd-2.4.6/srclib/apr
cp -rf ./apr-util-1.4.6 ./httpd-2.4.6/srclib/apr-util
4、重新编绎即可通过。
原文件如下:
APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.
解决办法如下:
1、下载apr与apr-uitl
wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.3.tar.gz
wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.1.tar.gz
2、解压
tar -xzvf ./apr-1.5.1.tar.gz
tar -xzvf ./apr-util-1.5.3.tar.gz
3、复制到./srclib/的apr和apr-util下(即去掉两个版本号)
cp -rf ./apr-1.4.6 ./httpd-2.4.6/srclib/apr
cp -rf ./apr-util-1.4.6 ./httpd-2.4.6/srclib/apr-util
4、重新编绎即可通过。
编辑回复