mod_wsgi icon indicating copy to clipboard operation
mod_wsgi copied to clipboard

Mac OS - no `apxs` provided, updated installation guide needed

Open mbaudis opened this issue 7 months ago • 2 comments

On Mac OS 15 the ./configure step fails due to missing apxs:

checking for apxs2... no
checking for apxs... no
configure: error: Apache tool 'apxs' or 'apxs2' is required to build mod_wsgi.

Apparently apxs has been excluded from Mac OS installations since 10.15 (Mojave).

It would be great if someone could provide an update to the installation guide (I haven't figured it out yet myself).

mbaudis avatar Apr 26 '25 09:04 mbaudis

You would need to install the full Xcode, but even that will not help in recent macOS versions as Apple made it mandatory for any third party Apache module to be signed even if compiled locally, so out of the box it will not work.

You should install Homebrew for maOS instead, and then install the httpd package from Homebrew and use it instead of the Apple supplied Apache version.

I need to do a minor patch release anyway so will try and update the macOS notes in places as some of it is indeed out of date.

GrahamDumpleton avatar Apr 26 '25 22:04 GrahamDumpleton

BTW, even after installing Apache using Homebrew, avoid using the configure/make/make install method of installing mod_wsgi, use the pip install method instead. See https://pypi.org/project/mod-wsgi/

GrahamDumpleton avatar Apr 26 '25 22:04 GrahamDumpleton