gpt4 book ai didi

apache - fatal error : 'apr.h' file not found when installing x-sendfile mac os x mountain lion server

转载 作者:行者123 更新时间:2023-12-04 07:41:22 30 4
gpt4 key购买 nike

当我将我的 Lion 服务器升级到 Mountain Lion 时,它似乎从 apache 中删除了我的 mod_xsendfile。

我按照 this 的说明进行操作网站,但遇到“没有这样的文件或目录”错误。
在谷歌的帮助下,我找到了 this页面为我提供了解决方案:
“sudo ln -s/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain//Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain”

看起来不错,但是当我尝试运行“sudo apxs -cia mod_xsendfile.c”时,我收到“ fatal error :找不到'apr.h'文件”错误。

有任何想法吗?

最佳答案

您需要重新安装 Xcode 命令行工具:

xcode-select --install

然后,您可能需要再次接受 Xcode 许可协议(protocol):
sudo xcodebuild -license

一旦你完成了这些(以及你的工具链的符号链接(symbolic link)),你应该很高兴。

关于apache - fatal error : 'apr.h' file not found when installing x-sendfile mac os x mountain lion server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11940296/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com