Compile-time hints for Redis source code on Linux systems "make CC Command not found,make: * [ADLIST.O] Error 127". This is because the system does not have the GCC environment installed, so the above prompts will appear at compile time, when the installation of GCC and then compile, the error message above will disappear.
Tools/raw Materials
CentOS 6.4 Redis make GCC
Method/Step
1
The following error occurred when you downloaded the decompression redis-2.0.4 and executed make to compile it:
Make:cc:Command not found make: * [ADLIST.O] Error 127
Prompt for make cc Command not found when compiling Redis
2
This is because the newly installed Linux system does not have the GCC environment installed, you need to install GCC, for convenience, here I choose to install with Yum. Yum Install gcc
Prompt for make cc Command not found when compiling Redis
3
Prompt for make cc Command not found when compiling Redis
4
Verify that GCC is successfully installed rpm-qa |grep gcc
Prompt for make cc Command not found when compiling Redis
5
Re-compile the Redis install make && made install
The following figure allows you to see the compilation pass and successfully install Redis. Prompt to make cc command not found
6
Summary When you are prompted to do cc command not found
compile Redis when compiling Redis: For Linux system installation, especially for Linu When x server is installed, system engineers tend to minimize the installation of the corresponding Linux system. Then, in such a Linux system to compile the source code file on the installation, usually appears cc:command not found, which means that the system does not have the C locale, need to install, on the Linux system C environment is GCC, so need to install GCC.