Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)

后端 未结 3 1869
离开以前
离开以前 2021-02-04 14:43

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

ext/apache2/mod_passenger.c:25:10: fatal error: \'httpd

3条回答
  •  无人共我
    2021-02-04 15:45

    I was having the same error. You need to:

    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!

    The update also commented out the line:

    Include /private/etc/apache2/extra/httpd-vhosts.conf

    So once I uncommented that it all loaded as normal.

    ** UPDATE FOR YOSEMITE **

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

    AllowOverride none Require all denied

    To:

    AllowOverride none Require all granted

提交回复
热议问题