简体   繁体   English

安装Apache 2.2

[英]Installing Apache 2.2

So I am following the directions and I did: 所以我按照指示行事,并且做了:

./configure --prefix=/fmac/users/f****/apacheServer \
  --exec-prefix=/fmac/users/f*****/apaacheServer

and it seems to work no errors or anything. 它似乎没有任何错误或任何工作。

Then I do: 然后我做:

make
make install

And i get the following error on install: 我在安装时收到以下错误:

libtool: install: error: cannot install `libaprutil-1.la' to a directory not
                         ending in /usr/local/apache2/lib

Any ideas why is there some other config var i need to set? 任何想法为什么还有一些其他配置var我需要设置?

In case anyone searches on Google for this answer, I figured out how to fix it. 如果有人在Google上搜索此答案,我想出了如何修复它。 I had to: 我不得不:

make clean

in my httpd-NN build root directory (where NN is the version of httpd you are building). 在我的httpd-NN构建根目录中(其中NN是您正在构建的httpd的版本)。

And then it worked. 然后它奏效了。

This thing worked for me: 这件事对我有用:

if you are installing apache,apr,apr-util at a different location (other than the default one) and don't have root rights then you need to configure apache as: 如果您在不同位置(默认值除外)安装apache,apr,apr-util并且没有root权限,那么您需要将apache配置为:

./configure  --prefix=path/to/your/apachefolder --with-apr=/path/for/apr -with-apr-util=/path/for/apr-util --with-pcre=/path/for/pcre

This worked for me . 这对我有用。 I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM