Project scenario:
In Linux system, use the command to decompress and install the keepalived source package.
Problem Description:
To install the keepalived source code package, you have run the following command:
tar -xzvf keepalived-2.2.2.tar.gz
cd keepalived-2.2.2
./configure --prefix=/usr/local/keepalived
The first two commands run normally, and the third command runs as follows:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/software/keepalived-2.2.2':
configure: error: no acceptable C compiler found in $PATH
Cause analysis:
The main reason for this error is that there is no c compiler.
Solution:
To install the C compiler:
yum -y install gcc
Rerun the command ./configure -- prefix =/usr/local/kept code>, the command runs normally, and the problem is solved.
If there are other errors, please refer to:
configure: error:!! OpenSSL is not properly installed on your system.!! Error resolution
warning - this build will not support IPVS with IPv6
Read More:
- configure: error: no acceptable C compiler found in $PATH
- Configuration: error: no acceptable C compiler found in $path error in Linux installation file
- Error: no acceptable C compiler found in $path
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- configure: error: C compiler cannot create executables
- Ubuntu: Failed to initialize compiler: object java.lang.Object In compiler mirror not found
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- Vs2019: solution nvcc total: cannot find compiler‘ cl.exe ‘ in PATH
- ninja Compiling the C compiler identification source file CMakeCCompilerId.c failed
- Install Python C extension compiler environment under windows (solve “error: command” cl.exe ‘ failed: No such file or directory”)
- eclipse cdt Program “make” not found in PATH
- configure: error: C compiler cannot create executables See `config.log’ for more details
- Error: no mail configuration found…
- Problems with vue project installation No ESLint configuration found
- ERROR StatusLogger No log4j2 configuration file found.
- ERROR StatusLogger No Log4j 2 configuration file found
- About error statuslogger no log4j2 configuration file found
- How to Fix Pandoc wasn’t found.pdflatex not found on PATH
- Configuration: error:!! OpenSSL is not properly installed on your system
- Solution to the problem of no C / C + + option in the new project of eclipse