解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
2015-12-26 14:07
856 查看
今日编译apache时出错:
#./configure --prefix……检查编辑环境时出现:
checking for APR... no
configure: error: APR
not found . Please read the documentation
解决办法:
1.下载所需软件包:
#./configure --prefix……检查编辑环境时出现:
checking for APR... no
configure: error: APR
not found . Please read the documentation
解决办法:
1.下载所需软件包:
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[/code]2.编译安装:yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs具体步骤如下:
a:解决apr not found问题>>>>>>[root@xt test]# tar -zxf apr-1.4.5.tar.gz [root@xt test]# cd apr-1.4.5 [root@xt apr-1.4.5]# ./configure --prefix=/usr/local/apr [root@xt apr-1.4.5]# make && make installb:解决APR-util not found问题>>>>[root@xt test]# tar -zxf apr-util-1.3.12.tar.gz [root@xt test]# cd apr-util-1.3.12 [root@xt apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config [root@xt apr-util-1.3.12]# make && make install
c:解决pcre问题>>>>>>>>>[root@xt test]#unzip -o pcre-8.10.zip [root@xt test]#cd pcre-8.10 [root@xt pcre-8.10]#./configure --prefix=/usr/local/pcre [root@xt pcre-8.10]#make && make install4.最后编译Apache时加上:
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/ \
--with-pcre=/usr/local/pcre
成功编译完成~
本文出自 “____哊.時^随记” 博客,请务必保留此处http://xtony.blog.51cto.com/3964396/836508
相关文章推荐
- Pull is not possible because you have unmerged ...
- Ubuntu 下修改 Could not reliably determine the serve
- 解决Default storage engine (InnoDB) is not available导致mysql无法启动的修改办法
- MySQL4 File ‘c:\mysql\share\charsets\?.conf’ not found (Errcode: 22)的解决方法
- SQL中IS NOT NULL与!=NULL的区别
- mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
- movie not found的解决办法(iis)
- 解决bash: mysql: command not found 的方法
- MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)
- Apache遇到的问题 APR not found问题的解决方法
- Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
- Apache启动错误Permission denied: httpd: could not open error log file解决方法
- sql not in 与not exists使用中的细微差别
- MYSQL出现" Client does not support authentication "的解决方法
- bash scp command not found的解决方法
- tomcat 之APR优化
- Ubuntu 源码安装Apache2
- 执行setup,报错 -bash: setup: command not found
- bash:.....:command not found
- 在Linux(Ubuntu/openSUSE/CentOS)下配置ASP.NET(Apache + Mono)转载+补充