Window版
參考:https://blog.csdn.net/Maxiao1204/article/details/117248174
1、下載安裝msys2
https://www.msys2.org
2、安裝編譯要用的包
pacman -S gcc make pkg-config
3、解決報錯
error: unknown type name ‘Dl_info’
修改 E:/env/redis-7.4.1/usr/include/dlfcn.h,刪除兩行
4、編譯安裝
cd /e/env/redis-7.4.1
make PREFIX=/e/env/redis-7.4.1/bin install