在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’“,不过不妨碍使用。
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’“,不过不妨碍使用。
相关文章推荐
- cocos2dv2项目转换为ARC支持的项目
- cocos2dv2项目转换为ARC支持的项目
- vector的clear()的内部过程与析构函数调用
- 由web程序出现乱码开始挖掘(Bom头、字符集与乱码)
- 程序的装入和链接
- cocos2dv2项目转换为ARC支持的项目
- Linux 系统裁剪
- C++中的类拷贝构造函数和模板拷贝构造函数
- (决策分析思考)Decision Analytic Thinking
- 中国联通SGIP接口
- 操作系统文件管理
- Foxmail如何导入旧数据【7.1版本以上】
- linux进程管理
- websockete
- jieba中文分词源码分析(三)
- 页面之间的卷滚切换效果
- Low Memory Killer(低内存管理)
- 方法反射的基本操作
- Hibernate Validator实践之一 入门篇
- android app崩溃日志收集