Compiling passenger apache 2 module fails with "No rule to make target … /ruby.h', needed by `passenger_native_support.o'. Stop."

Number:rdar://36469958 Date Originated:12/01/2018
Status:Open Resolved:
Product:macOS Product Version:10.13.2
Classification: Reproducible:Yes
Having upgraded from Sierra to High Sierra and attempting to update the Passenger application server from 4.X to 5.X via Homebrew, when attempting to upgrade the apache 2 module I'm receiving the following error listed below.

Steps to Reproduce:

1. Install homebrew package manager
2. Install 'passenger' package
3 run $ passenger-install-apache2-module


Checking whether there are multiple Apache installations...
Only a single installation detected. This is good.

Expected Results:
Passenger apache module to be successfully compiled from source.

Actual Results:

Compiling and installing Apache 2 module...


cd 'buildout/ruby/ruby-2.3.3-universal-macosx/' && make
make: *** No rule to make target `/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h', needed by `passenger_native_support.o'.  Stop.
rake aborted!
Command failed with status (2): [cd 'buildout/ruby/ruby-2.3.3-universal-mac...]
/usr/local/Cellar/passenger/5.1.12/libexec/build/ruby_extension.rb:50:in `block in <top (required)>'
Tasks: TOP => apache2 => buildout/ruby/ruby-2.3.3-universal-macosx/passenger_native_support.bundle

macOS High Sierra 10.13.2

ruby 2.3.3p222
rvm 1.29.1


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!