CentOS、Anolis 龙蜥 源码编译 异常处理
常见异常
异常:
shell/bin/sh: cc: command not found
解决:
shellyum -y install gcc
异常
shell#include <openssl/ssl.h>
解决:
shellyum -y install openssl-devel
异常
shell#include <curl/curl.h>
解决:
shellyum -y install curl-devel
异常
shell#include <expat.h>
解决:
shellyum -y install expat-devel
异常
shell-bash: make: command not found
解决:
shellyum -y install make
异常
shell#include <jemalloc/jemalloc.h>
解决:
shellmake MALLOC=libc
异常
shellYou need tcl 8.5 or newer in order to run the Redis test
解决:
shellyum -y install tcl
异常
shell#error "Required C99 support is in a test phase
解决:
shellmake CFLAGS=-std=c99
异常
shell-bash: autoreconf: command not found
解决:
shellyum -y install autoconf
异常
shellCan't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326. autoreconf: failed to run aclocal: No such file or directory
解决:
shellyum install -y libtool
异常
shellconfigure: error: *** zlib.h missing - please install first or check config.log ***
解决:
shellyum -y install zlib-devel
异常
shellconfigure: error: *** working libcrypto not found, check config.log error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
解决:
shellyum -y install openssl-devel
异常
shell-bash: tar: command not found
解决:
shellyum -y install tar
异常
shell#error "Required C99 support is in a test phase.
解决:
shellmake CFLAGS=-std=c99 make CFLAGS=-std=c99 install
异常
shellerror: no acceptable C compiler found in $PATH
解决
shellyum -y install gcc
异常
shellconfigure: error: !!! OpenSSL is not properly installed on your system. !!! !!! Can not include OpenSSL headers files. !!!
解决
shellyum -y install openssl-devel
异常
shell*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
解决
shellyum -y install libnl3-devel
异常
shellsrc/haproxy.c:80:31: fatal error: systemd/sd-daemon.h: No such file or directory #include <systemd/sd-daemon.h>
解决
shellyum -y install systemd-devel
异常
shellPlease install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
解决:
shellyum -y install libnl3-devel # yum -y install libnl-devel
总结
- 如果遇见
#include <**xxx**.h>
时,什么都不用考虑,直接取执行安装命令:yum -y install **xxx**-devel
,然后进行重试