mac http2.4.4

来源:互联网 发布:购物商城app源码 编辑:程序博客网 时间:2024/05/16 04:47

报错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/pcremakemake 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! ~。~


原创粉丝点击