天天看点

config.guess: unable to guess system type、config.sub: missing argument

一个简单的错误: 

onfigure: error: cannot guess build type; you must specify one      

一个复杂的错误:

./configure
./config.guess: unable to guess system type
 
This script (version 2018-02-24), has failed to recognize the
operating 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.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
 
If ./config.guess has already been updated, send the following data and any
information you think might be pertinent to [email protected] to
provide the necessary information to handle your system.
 
config.guess timestamp = 2018-02-24
 
uname -m = loongarch64
uname -r = 4.19.0-loongson-3-desktop
uname -s = Linux
uname -v = #3200 SMP Thu May 13 10:17:27 CST 2021
 
/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 2021"
config.sub: missing argument
Try `config.sub --help' for more information.
Unknown system , edit the configure
Makefile:3: config.mak: 没有那个文件或目录
make: *** [Makefile:340:config.mak] 错误 1      

解决办法,下载这两个文件,替换目录中的同名文件:

https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

继续阅读