Apache httpd.h file missing from MacOSX after updating Mavericks (** Updated for Yosemite **)

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

ext/apache2/mod_passenger.c:25:10: fatal error: 'httpd.h' file not found

Not sure what happened to him, my local development environment was fine until I upgraded to Mavericks β€” I had to upgrade Xcode and remove / reinstall the gem.

I tried creating httpd.h in the /etc/apache2 directory and pasting this one , but this did not work.

I do not know how to replace this file

+8
ruby-on-rails apache passenger macos
source share
3 answers

I had the same error. You need:

  • Update/install xcode.
  • 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 on the line:

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

So, as soon as I uncommented that everything is loaded as usual.

** UPDATE FOR YOSEMITE **

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

<Directory /> AllowOverride none Require all denied </Directory>

To:

<Directory /> AllowOverride none Require all granted </Directory>

+26
source

During the upgrade of mavericks, several configuration files were saved as previous and replaced by the installation, including:

 /etc/apache2/httpd.conf~previous /etc/group~previous /etc/php.ini.default-5.2-previous /etc/sshd_config~previous /etc/syslog.conf~previous 
+2
source

Another related issue is related to / usr / share / httpd / build / config _vars.mk, you can see that cc is installed incorrectly, and CC should read CC = / usr / bin / cc, similar to CPP, you should read CC = / usr / bin / cc -E

0
source

All Articles