关于在cygwin下编译redis出错“Makefile:228: recipe for target 'geohash_helper.o' failed"的解决方法

4 篇文章 0 订阅
1 篇文章 0 订阅

在cygwin下编译redis4.0.8时,报错:

Makefile:228: recipe for target 'geohash_helper.o' failed
make[1]: *** [geohash_helper.o] Error 1
make[1]: Leaving directory '/redis408/src'
Makefile:6: recipe for target 'all' failed

make: *** [all] Error 2

提示编译geohash_helper.o失败,只要单独编译即可:

 gcc -c geohash_helper.c -o geohash_helper.o

这时重新编译make

提示

hyperloglog.o:在函数‘hllCount’中:
/redis408/src/hyperloglog.c:1033:对‘llroundl’未定义的引用
collect2: 错误:ld 返回 1
Makefile:199: recipe for target 'redis-server' failed
make: *** [redis-server] Error 1

第二个错误,未找到llroundl函数,查看hyperloglog.c文件,发现已引用了math.h文件,先把

llroundl改为round,重新编译,ok

$ gcc -c hyperloglog.c -o hyperloglog.o


Administrator@PC-20180517OAOT /redis408/src

$ make


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值