Httpd Compilation on Mac: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 24: | Line 24: | ||
./configure \ | ./configure \ | ||
--prefix /Users/ovidiu/runtime/httpd-2.2.26 \ | --prefix /Users/ovidiu/runtime/httpd-2.2.26 \ | ||
--with-included-apr \ | |||
--enable-so --enable-expires=shared \ | --enable-so --enable-expires=shared \ | ||
--with-mpm=worker \ | --with-mpm=worker \ |
Revision as of 17:06, 5 January 2017
Internal
Notes
gcc
- 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
Local APR
/usr/share/apr-1/build-1/libtool --silent --mode=link /usr/bin/gcc -o mod_expires.la -rpath /Users/ovidiu/runtime/httpd-2.2.26/modules -module -avoid-version mod_expires.lo /usr/share/apr-1/build-1/libtool: line 8962: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc: No such file or directory
Example
./configure \ --prefix /Users/ovidiu/runtime/httpd-2.2.26 \ --with-included-apr \ --enable-so --enable-expires=shared \ --with-mpm=worker \ --enable-proxy \ --enable-proxy-http \ --enable-proxy-ajp \ --enable-proxy-balancer \ --disable-cgi