安装 Apache (libaprutil) 时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1768766/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 18:25:22  来源:igfitidea点击:

Error installing Apache (libaprutil)

apacheinstallation

提问by Robert Gould

While installing apache, I got this error message:

在安装 apache 时,我收到此错误消息:

libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending /some_directory

libtool: 安装: 错误: 无法将 `libaprutil-1.la' 安装到不以 /some_directory 结尾的目录

What's wrong?

怎么了?



NOTE: I already figured out the issue, but since searching Google was not very helpful, I wrote up this question in the hope of helping others, and possibly myself, with this error in the future.

注意:我已经解决了这个问题,但是由于搜索 Google 并不是很有帮助,所以我写了这个问题,希望能帮助其他人,也可能是我自己,将来会出现这个错误。

回答by Robert Gould

apparently ./config --prefix=/mydirdidn't get set correctly the first time. Rerunning a failed apache makecan be troublesome. You need to first do a make clean, and then retry with the correct --prefix

显然./config --prefix=/mydir第一次没有正确设置。重新运行失败的 apachemake可能会很麻烦。您需要先执行 a make clean,然后使用正确的 --prefix 重试