小牛队后的Apache httpd.h中文件丢失MacOSX上升级(**更新了约塞米蒂**) [英] Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)

查看:240
本文介绍了小牛队后的Apache httpd.h中文件丢失MacOSX上升级(**更新了约塞米蒂**)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行乘客安装-Apache2的模块命令,我不断收到此错误:

I am trying to run the passenger-install-apache2-module command and I keep getting this error:

转/ Apache2的/ mod_passenger.c:25:10:致命错误:'httpd.h中找不到文件

不知道这是怎么回事,我的本地开发环境是很好,直到我升级到小牛 - 我不得不更新X code和卸载/重新安装乘客宝石

Not sure what happened to it, my local dev environment was fine until I upgraded to Mavericks - I had to update XCode and uninstall/reinstall the passenger gem.

我试图在创建 httpd.h中的/ etc / Apache2的目录和粘贴的这个中,但没有奏效。

I tried creating httpd.h in the /etc/apache2 directory and pasting this in but that didn't work.

我不知道如何替换此文件

I've no idea how to replace this file

推荐答案

我有同样的错误。您需要:

I was having the same error. You need to:


  1. 更新/安装apache code。

  2. 运行 X $ C $命令行C-选择--install 来重新安装命令行工具。

  1. Update/install xcode.
  2. run xcode-select --install from the command line to reinstall the command line tools.

这为我工作,希望对你呢!

It worked for me, hopefully for you too!

更新还注释掉行:

包含/private/etc/apache2/extra/httpd-vhosts.conf

所以,一旦我的注释去掉,这一切都加载正常。

So once I uncommented that it all loaded as normal.

**更新** YOSEMITE

** UPDATE FOR YOSEMITE **

在你的 /etc/apache2/httpd.conf 文件,您需要更改:

In your /etc/apache2/httpd.conf file you'll need to change:

<目录/>
   没有的AllowOverride
   要求所有被拒绝
< /目录>

要:

<目录/>
   没有的AllowOverride
   要求所有批准
< /目录>

这篇关于小牛队后的Apache httpd.h中文件丢失MacOSX上升级(**更新了约塞米蒂**)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆