一个简单的错误:
onfigure: error: cannot guess build type; you must specify one
一个复杂的错误:
./configure./config.guess: unable to guess system typeThis script (version -02-24), has failed to recognize theoperating system you are using. If your script is old, overwrite *all*copies of config.guess and config.sub with the latest versions from:https://git./gitweb/?p=config.git;a=blob_plain;f=config.guessandhttps://git./gitweb/?p=config.git;a=blob_plain;f=config.subIf ./config.guess has already been updated, send the following data and anyinformation you think might be pertinent to config-patches@ toprovide the necessary information to handle your system.config.guess timestamp = -02-24uname -m = loongarch64uname -r = 4.19.0-loongson-3-desktopuname -s = Linuxuname -v = #3200 SMP Thu May 13 10:17:27 CST /usr/bin/uname -p = unknown/bin/uname -X= hostinfo= /bin/universe= /usr/bin/arch -k = /bin/arch = loongarch64/usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = "loongarch64"UNAME_RELEASE = "4.19.0-loongson-3-desktop"UNAME_SYSTEM = "Linux"UNAME_VERSION = "#3200 SMP Thu May 13 10:17:27 CST "config.sub: missing argumentTry `config.sub --help' for more information.Unknown system , edit the configureMakefile:3: config.mak: 没有那个文件或目录make: *** [Makefile:340:config.mak] 错误 1
解决办法,下载这两个文件,替换目录中的同名文件:
https://git./gitweb/?p=config.git;a=blob_plain;f=config.guess
https://git./gitweb/?p=config.git;a=blob_plain;f=config.sub