linux系统configure时报错,checking build system type... bin/config.guess: unable to guess system type

报错内容如下:

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文件删了,下载新的就行了

这个错误是在运行命令"./configure"出现的。错误提示是"configure: error: /bin/sh ./config.sub /d/project/nc_file_format/hdf5-1.10.6/install/lib failed"。根据引用,这个错误可能是由于找不到或无法执行config.sub文件导致的。 根据引用中的解决方法,你可以尝试用系统中的config.sub文件替换掉当前目录下的config.sub文件。你可以使用以下命令进行替换: mv /home/joy/config/config.sub /home/joy/config/config.sub.bak cp /usr/share/libtool/build-aux/config.sub /home/joy/config/config.sub mv /home/joy/config/config.guess /home/joy/config/config.guess.bak cp /usr/share/libtool/build-aux/config.guess /home/joy/config/config.guess 这样做可以确保你使用的是系统中的config.sub文件,从而解决配置错误。 此外,你也可以使用引用中的命令查找系统中所有的config.sub文件,与你当前目录下的进行比较,以确定是否存在其他引起错误的config.sub文件。你可以使用以下命令进行查找: find / -name config.sub 这会在系统中查找所有名为config.sub的文件,并输出它们的路径。你可以将这些路径与你当前目录下的config.sub进行比较,以找到可能引起错误的文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [configure: error: cannot run /bin/bash config/config.sub](https://blog.csdn.net/Jocker_xie/article/details/89332120)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值