When using make I get the following error
release.c:37:10: fatal error: release.h: No such file or directory 37 | #include "release.h"
Comment From: sundb
Can you provide more information? Which platform are you using? Which version of redis? Or something else.
Comment From: anzunming
Platform WLS ubuntu Details are as follows Linux DESKTOP-CA3O0E3 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
Redis version It is today's source code
make version GNU Make 4.2.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Compilation details root@DESKTOP-CA3O0E3:/mnt/g/cplusplus/redis# make install cd src && make install make[1]: Entering directory '/mnt/g/cplusplus/redis/src' ./mkreleasehdr.sh: 15: Syntax error: end of file unexpected (expecting "then") /bin/sh: 1: pkg-config: not found CC Makefile.dep ./mkreleasehdr.sh: 15: Syntax error: end of file unexpected (expecting "then") /bin/sh: 1: pkg-config: not found CC adlist.o CC quicklist.o CC ae.o CC anet.o CC dict.o CC server.o CC sds.o CC zmalloc.o CC lzf_c.o CC lzf_d.o CC pqsort.o CC zipmap.o CC sha1.o CC ziplist.o CC release.o release.c:37:10: fatal error: release.h: No such file or directory 37 | #include "release.h" | ^~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:402: release.o] Error 1 make[1]: Leaving directory '/mnt/g/cplusplus/redis/src' make: *** [Makefile:9: install] Error 2 root@DESKTOP-CA3O0E3:/mnt/g/cplusplus/redis#
Comment From: sundb
It seems that you put the code in the window and mount disk to wsl, because the encoding of your file in the window has been modified causing the error. The solution is that you don't mount window disk.
Comment From: anzunming
thank you