报错内容如下:
checking build system type... bin/config.guess: unable to guess system type
This script, last modified 2005-12-13, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess and http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
If the version you run (bin/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = 2005-12-13 uname -m = aarch64 uname -r = 4.19.71-23-kr990 uname -s = Linux uname -v = #20-KYLINOS SMP PREEMPT Mon Dec 5 03:58:04 UTC 2022 /usr/bin/uname -p = aarch64 /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = aarch64 /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = aarch64 UNAME_RELEASE = 4.19.71-23-kr990 UNAME_SYSTEM = Linux UNAME_VERSION = #20-KYLINOS SMP PREEMPT Mon Dec 5 03:58:04 UTC 2022 configure: error: cannot guess build type; you must specify one make: *** [Makefile:479:/home/hkyle/MYDIR/open_SURFEX_V8_1/src/LIB/netcdf4/szip-2.1-LXgfortran-MPIAUTO/lib/libsz.a] 错误 1
网上翻了很多帖子,差不多都说是configure.guess和configure.sub的版本太低,让下载最新的configure.guess和configure.sub然后替换。对于我这个新手来说,完全不知道去哪里替换。后来找了个本办法,例如,我在/home/hkyle/MYDIR/open_SURFEX_V8_1/src执行了./configure,那么生成的configure.guess和configure.sub也在src文件夹下面的某个文件夹内,执行find /home/hkyle/MYDIR/open_SURFEX_V8_1/src configure.guess命令查找,返回了许多路径,我一个一个看 timestamp = 2005-12-13,跟终端返回一样的话就把这个文件夹里的configure.guess和sub文件删了,下载新的就行了