ein*_*ord 8 apache x-sendfile apr fatal-error osx-mountain-lion
当我将Lion服务器升级到Mountain Lion时,它似乎从apache中删除了我的mod_xsendfile.
我按照本网站的说明进行操作,但遇到了"没有这样的文件或目录"错误.在谷歌的帮助下,我发现这个页面给了我解决方案:"sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/工具链/ OSX10.8.xctoolchain"
看起来不错,但是当我尝试运行"sudo apxs -cia mod_xsendfile.c"时,我收到"致命错误:'apr.h'文件未找到"错误.
有任何想法吗?
您需要重新安装Xcode命令行工具:
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
您可能需要再次接受Xcode许可协议:
sudo xcodebuild -license
Run Code Online (Sandbox Code Playgroud)
一旦你完成了(以及工具链的符号链接),你应该很高兴.