Httpd Compilation on Mac: Difference between revisions
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
=Notes= | =Notes= | ||
==gcc== | |||
* <tt>configure</tt> tends to use <tt>cc</tt> 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 <tt>configure</tt>, do this: | * <tt>configure</tt> tends to use <tt>cc</tt> 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 <tt>configure</tt>, do this: | ||
Line 12: | Line 14: | ||
</pre> | </pre> | ||
==Local APR== | |||
After the configuration and during the compilation I've got this: | |||
<pre> | |||
/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 | |||
</pre> | |||
I worked around this problem by re-configuring and using: | |||
<pre> | |||
--with-included-apr | |||
</pre> | |||
at configuration stage. | |||
Also see: {{Internal|Httpd_RHEL_Compilation#APR|APR}} | |||
=Example= | =Example= | ||
Line 18: | Line 38: | ||
./configure \ | ./configure \ | ||
--prefix /Users/ovidiu/runtime/httpd-2.2.26 \ | --prefix /Users/ovidiu/runtime/httpd-2.2.26 \ | ||
--with-mpm=worker \ | --with-mpm=worker \ | ||
--enable-proxy \ | --with-included-apr \ | ||
--enable-proxy-http \ | --enable-so \ | ||
--enable-proxy-ajp \ | --enable-expires=shared \ | ||
--enable-proxy-balancer \ | --enable-proxy=shared \ | ||
--enable-proxy-http=shared \ | |||
--enable-proxy-ajp=shared \ | |||
--enable-proxy-balancer=shared \ | |||
--disable-cgi | --disable-cgi | ||
</pre> | </pre> |
Latest revision as of 18:24, 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
After the configuration and during the compilation I've got this:
/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
I worked around this problem by re-configuring and using:
--with-included-apr
at configuration stage.
Also see:
Example
./configure \ --prefix /Users/ovidiu/runtime/httpd-2.2.26 \ --with-mpm=worker \ --with-included-apr \ --enable-so \ --enable-expires=shared \ --enable-proxy=shared \ --enable-proxy-http=shared \ --enable-proxy-ajp=shared \ --enable-proxy-balancer=shared \ --disable-cgi