安装redis报错cc: error: ../deps/hiredis/libhiredis.a: No such file or directory的解决办法

1、今天安装redis报错如下

cc: error: ../deps/hiredis/libhiredis.a: No such file or directory
cc: error: ../deps/lua/src/liblua.a: No such file or directory
cc: error: ../deps/jemalloc/lib/libjemalloc.a: No such file or directory
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/data/redis-5.0.7/src'
make: *** [install] Error 2

解决办法如下:

[root@node2 redis-5.0.7]# cd deps/
[root@node2 deps]# make lua hiredis linenoise

2、报错如下

 cc: error: ../deps/jemalloc/lib/libjemalloc.a: No such file or directory
 make[1]: *** [redis-server] Error 1
 make[1]: Leaving directory `/data/redis-5.0.7/src'

解决办法

[root@node2 redis-5.0.7]# cd  deps/jemalloc/
[root@node2 redis-5.0.7]#  ./configure
[root@node2 jemalloc]#  make && make install_bin install_include install_lib

以上错误也有可能是权限不足引起!!!

发表评论

登录... 后才能评论