这是我第一次尝试以普通用户(非root用户)的身份在我的计算机上本地安装Apache HTTP服务器。
我已经下载了Apache HTTP服务器http://httpd.apache.org/download.cgi.的Apache2.4.1版本然而,当我尝试在我的机器中本地构建和安装时,我得到了以下错误:
httpd/httpd-2.4.1 1059> ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... no
configure: error: APR not found. Please read the documentation.
我不确定它在寻找什么依赖--我的意思是下载包不包含它?我需要做什么来构建/部署Apache HTTP服务器?
提前谢谢。
发布于 2012-04-08 04:10:21
对于Ubuntu 11.10,这个选项似乎工作得很好:
# APR
wget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gz
tar -xvzf apr-1.4.6.tar.gz
cd apr-1.4.6/
./configure
make
make install
cd ..
# APR Utils
wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz
tar -xvzf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make
make install
cd ..
# Apache
wget http://apache.petsads.us//httpd/httpd-2.4.1.tar.gz
tar -xvzf httpd-2.4.1.tar.gz
cd httpd-2.4.1
./configure --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-deflate --enable-expires --enable-headers --enable-usertrack --enable-ssl --enable-cgi --enable-vhost-alias --enable-rewrite --enable-so --with-apr=/usr/local/apr/
make
make install
cd ..
你可以在下面找到更多关于它的信息
发布于 2013-01-23 02:39:59
如果你有Debian/Ubuntu,你只需要:
apt-get install libapr1-dev libaprutil1-dev
然后是./configure
完成
发布于 2012-02-25 03:41:22
1,您需要APR (apache可移植运行时),它是apache web服务器的核心组件
2、如果你想进行安装,你可能需要root帐号
3,即使没有,apache也无法在没有root帐户的情况下开始侦听非特权端口(低于1024)
4、获得root用户或让具有root用户的用户从官方存储库(我不知道您运行哪个发行版)安装apache,比如使用yum、apt-get等。
https://stackoverflow.com/questions/9436860
复制相似问题