Permission denied
make[1]: Entering directory '/tmp/tmp.bi7UiNeRbb/src' sh: 1: ./mkreleasehdr.sh: Permission denied
解决方案:
root@test:/tmp/tmp.bi7UiNeRbb/src# ls -al mkreleasehdr.sh -rw-r--r-- 1 root root 735 May 3 12:57 mkreleasehdr.sh root@test:/tmp/tmp.bi7UiNeRbb/src# chmod u+x mkreleasehdr.sh root@test:/tmp/tmp.bi7UiNeRbb/src# ls -al mkreleasehdr.sh -rwxr--r-- 1 root root 735 May 3 12:57 mkreleasehdr.sh
No such file or directory
现象:
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 cc: error: ../deps/hdr_histogram/hdr_histogram.o: No such file or directory
解决方案:
# 进入 deps 目录,更新 jemalloc 的版本为 5.2.1 root@test:/tmp/tmp.bi7UiNeRbb/deps# ./update-jemalloc.sh 5.2.1 # 通过 make 编译 deps 目录中的所有项目 root@test:/tmp/tmp.bi7UiNeRbb/deps# make jemalloc lua hiredis hdr_histogram linenoise