config.guess: unable to guess system typeconfig.sub: missing argument

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了config.guess: unable to guess system typeconfig.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 config-patches@gnu.org 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

以上是关于config.guess: unable to guess system typeconfig.sub: missing argument的主要内容,如果未能解决你的问题,请参考以下文章

unable to execute 'gcc': No such file or directory error: command 'gcc' failed with

ERROR: Unable to clean up existing run directory

SpringBoot使用Swagger2出现Unable to infer base url.

C++学习(四零一)config.guess config.sub

config/config.guess 被符号链接到第三方包中的错误文件

Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server w