cd ~/opt
wget http://apache.mirrors.pair.com/httpd/httpd-2.4.10.tar.gz
tar zxvf httpd-2.4.10.tar.gz
cd httpd-2.4.10
./configure
编译 apache 的时候会碰到下面情况
123456
checking for APR-util... yes
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/Users/haidx/opt/httpd-2.4.10':configure: error: C compiler cannot create executablesSee `config.log'for more details