Ubuntu 乌班图 源码编译 异常处理
常见异常
异常
shellerror: C compiler cc is not found
解决:
shellsudo apt update sudo apt -y install gcc
异常
shell--with-openssl=<path> error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
shellconfigure: error: *** working libcrypto not found, check config.log
解决:
shellsudo apt update sudo apt -y install libssl-dev
异常
shell<zlib.h> --with-zlib=<path>
解决:
shellsudo apt update sudo apt -y install zlib1g-dev
异常
shell<curl/curl.h>
解决:
shellsudo apt -y install libcurl4-gnutls-dev
异常
shell<expat.h>
解决:
shellsudo apt update sudo apt -y install libexpat1-dev
异常
shellGITGUI_VERSION = 0.21.GITGUI * new locations or Tcl/Tk interpreter GEN git-gui INDEX lib/ * tclsh failed; using unoptimized loading MSGFMT po/pt_pt.msg make[1]: *** [Makefile:254:po/pt_pt.msg] 错误 127 make: *** [Makefile:2109:all] 错误 2
解决:
shellsudo apt update sudo apt -y install gettext
异常
shell--with-pcre=<path>
解决:
shellsudo apt update sudo apt -y install libpcre3-dev
异常
shellCommand 'make' not found
解决:
shellsudo apt update sudo apt -y install make
异常
shellCommand 'autoreconf' not found
解决:
shellsudo apt update sudo apt -y install autoconf
异常
shellPlease install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
解决:
shellapt -y install libnl-3-dev # apt -y install libnl-dev