Httpd Compilation on Mac: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
export CC=/usr/bin/gcc
export CC=/usr/bin/gcc
export CPP=/usr/bin/cpp
export CPP=/usr/bin/cpp
</pre>
=Example=
<pre>
./configure \
--prefix /Users/ovidiu/runtime/httpd-2.2.26 \
--enable-so --enable-expires=shared
--with-mpm=worker \
--enable-proxy \
--enable-proxy-http \
--enable-proxy-ajp \
--enable-proxy-balancer \
--disable-cgi
</pre>
</pre>

Revision as of 17:01, 5 January 2017

Internal

Notes

  • configure tends to use cc by default and it has to be configured to use gcc. The Mac environment comes with gcc and the gcc pre-processor already installed, so before running configure, do this:
export CC=/usr/bin/gcc
export CPP=/usr/bin/cpp


Example

./configure \
 --prefix /Users/ovidiu/runtime/httpd-2.2.26 \
 --enable-so --enable-expires=shared 
 --with-mpm=worker \
 --enable-proxy \
 --enable-proxy-http \
 --enable-proxy-ajp \
 --enable-proxy-balancer \
 --disable-cgi