Apache httpd 设置和安装 [英] Apache httpd setup and installation
问题描述
这是我第一次尝试以普通用户(非 root 用户)身份在我的机器上本地安装 Apache HTTP 服务器.
This is my first time I am trying to install Apache HTTP server locally in my box as a regular user (non-root).
我已经下载了 Apache HTTP 服务器的 Apache 2.4.1 版本 [http://httpd.apache.org/download.cgi].但是,当我尝试在我的盒子中本地构建和安装时,出现以下错误:
I have downloaded Apache 2.4.1 version of Apache HTTP server [http://httpd.apache.org/download.cgi]. However when I am trying to build and install locally in my box I am getting below error:
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 服务器?
I am not sure what dependency it is looking for - I mean the download package does not contains it? What I need to do to build / deploy Apache HTTP server?
提前致谢.
推荐答案
当它告诉你请阅读文档
时,这意味着你应该去阅读 Apache 文档 ( http://httpd.apache.org/docs/2.4/install.html )它告诉你
When it tells you Please read documentation
it means that you should go read Apache documentation ( http://httpd.apache.org/docs/2.4/install.html ) which tells you to
从 Apache APR 下载最新版本的 APR 和 APR-Util,将它们解压到 ./srclib/apr 和 ./srclib/apr-util (确保域名没有版本号;例如,APR发行版必须在 ./srclib/apr/)
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 domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/)
然后做
./configure --with-included-apr
这篇关于Apache httpd 设置和安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!