您的位置:首页 > 其它

在Mac下编译webdis

2015-09-05 17:17 211 查看
webdis为Redis提供http接口。在mac上编译的过程中遇到了一些问题,索性记录下来。

1.下载webdis: git clone git://github.com/nicolasff/webdis.git

2.安装libevent: brew install libevent-devel

3.修改Makefile,修改如下:

CFLAGS ?= -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -I/usr/local/Cellar/libevent/2.0.22/include

LDFLAGS ?= -levent -pthread -L/usr/local/Cellar/libevent/2.0.22/lib

4.最后编译,执行make就可以了,留下一个警告“clang: warning: argument unused during compilation: ‘-pthread’“,不过不妨碍使用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  webdis-mac