[英]Apache Apr and Apr-util installlation?
I am installing Apache for first time in ubuntu 12.04 and i looked up in the link Compiling and installing apache我第一次在 ubuntu 12.04 中安装 Apache,我在链接编译和安装 apache中查找
It says we should have APR and APR-util first i follow the procedure and untar them into它说我们应该首先拥有 APR 和 APR-util 我按照程序将它们解压到
/usr/local/srclib/apr
and /usr/local/srclib/apr-util
directory. /usr/local/srclib/apr
和/usr/local/srclib/apr-util
目录。 Every where it is written每一个地方都写着
./configure's --with-included-apr
Now i just do ./configure
in /usr/local/srclib/apr
after that i do ./configure
in /usr/local/srclib/apr-util
then it throws me error configure: error: APR could not be located. Please use the --with-apr option.
现在我只在
/usr/local/srclib/apr
中执行./configure
,然后在/usr/local/srclib/apr-util
中执行./configure
然后它会抛出错误configure: error: APR could not be located. Please use the --with-apr option.
configure: error: APR could not be located. Please use the --with-apr option.
then i add /configure --with-apr
it throws an error然后我添加
/configure --with-apr
它会引发错误
error: --with-apr requires a directory or file to be provided.
Please tell me what i am doing wrong here请告诉我我在这里做错了什么
Try running this:尝试运行这个:
./configure --with-apr=<directory path where apr is installed>
Eg: If your APR installation exists at /usr/local/apr
(default installation location of APR), you should run:例如:如果您的 APR 安装存在于
/usr/local/apr
(APR 的默认安装位置),您应该运行:
./configure --with-apr=/usr/local/apr
As you are running ./configure
in Apache source directory, ./srclib
means srclib directory within Apache directory, not in /usr/local.当您在 Apache 源目录中运行
./configure
时,./ ./srclib
表示 Apache 目录中的 srclib 目录,而不是 /usr/local。 Suppose you place your Apache directory as /usr/local/httpd-2.xx, then the path for apr and apr-util are as follows:假设你把你的 Apache 目录放置为 /usr/local/httpd-2.xx,那么 apr 和 apr-util 的路径如下:
/usr/local/httpd-2.x.x/srclib/apr
/usr/local/httpd-2.x.x/srclib/apr-util
Now you can use --with-included-apr
while configuring apache without any glitch.现在您可以在配置 apache 时使用
--with-included-apr
,而不会出现任何故障。 Just make sure that directories are named exactly as apr and apr-util and do not contain any version number etc. and yo don't need to run configure in apr and apr-util directory.只需确保目录完全命名为 apr 和 apr-util 并且不包含任何版本号等,并且您不需要在 apr 和 apr-util 目录中运行配置。 Just place apr and apr-util as mentioned and start building your apache.
只需按照提到的方式放置 apr 和 apr-util 并开始构建您的 apache。
Rename both utilities as apr and apr-utils without any version tail,将这两个实用程序重命名为 apr 和 apr-utils 没有任何版本尾,
While installing from source mention exact path of apr directory like below.从源安装时,请提及 apr 目录的确切路径,如下所示。
./configure --with-apr=/usr/local/scrib/apr make make install ./configure --with-apr=/usr/local/scrib/apr make make install
cd httpd-2.4.x/srcib/
chmod +x */build/*
./configure --with-included-apr....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.