mac http2.4.4

报错1

checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/usr/local/src/httpd-2.4.4':
configure: error: C compiler cannot create executables

解决

sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain

引用

http://blog.hgomez.net/blog/2012/10/15/mountain-lion-apxs/


报错2

checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

解决

下载:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

1. Download PCRE from PCRE.org

2. Compile it with a prefix and install it:

./configure --prefix=/usr/local/pcre
make
make install

3. Go back to where your Apache installation is and compile Apache with PCRE:

--with-pcre=/usr/local/pcre
引用

http://stackoverflow.com/questions/10663180/http-install-error-in-libpcre


报错4

以上都是在命令行下报错的,当我编译完之后,运行无翻译,只能看error.log

AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded??

解决

去httpd.conf中开启模块 mod_slotmen-shm loaded

引用

https://issues.apache.org/bugzilla/show_bug.cgi?id=52841


done! ~。~


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值