天天看點

全網首發:configure: error: cannot guess build type; you must specify one

詳細錯誤:

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"
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/detect.mk:91:setup] 錯誤 1      

  原因就是config.guess/config.sub不對。解決辦法:

https://quantum6.blog.csdn.net/article/details/117668896

  有人發現複制之後還是不對。為什麼呢?

  • 調用了autogen.sh。

autogen.sh會自動産生新的。不調用即可。

  • 已經有個連結。

把相應的連結從目前目錄删除。

  • 使用的是其他目錄的

通過find -name config.guess,會看到在其他目錄下有相應的檔案,如:build-scripts、builds/unix、build-aux。替換這些目錄的兩個檔案即可。