51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

编译redis报错/deps/hiredis/libhiredis.a解决

在编译redis3.2.9时报错
cc: ../deps/hiredis/libhiredis.a: No such file or directory cc: ../deps/lua/src/liblua.a: No such file or directory cc: ../deps/geohash-int/geohash.o: No such file or directory cc: ../deps/geohash-int/geohash_helper.o: No such file or directory make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `/usr/local/src/redis-3.2.9/src' make: *** [all] Error 2

|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 5 6 7 | cc: ../deps/hiredis/libhiredis.a: No such file or directory cc: ../deps/lua/src/liblua.a: No such file or directory cc: ../deps/geohash-int/geohash.o: No such file or directory cc: ../deps/geohash-int/geohash_helper.o: No such file or directory make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `/usr/local/src/redis-3.2.9/src' make: *** [all] Error 2 |

解决办法

进入源码包目录下的deps目录中执行
make geohash-int hiredis jemalloc linenoise lua

|---|-------------------------------------------------| | 1 | make geohash-int hiredis jemalloc linenoise lua |

然后再进行make编译就可以了

赞(0)
未经允许不得转载:工具盒子 » 编译redis报错/deps/hiredis/libhiredis.a解决