报错:
硬件平台 飞腾d2000
[root@localhost canutils-4.0.6]# ./configure
–prefix=/opt/canutils-4.0.6/out libsocketcan_LIBS=-lsocketcan LDFLAGS=“-L/opt/libsocketcan-0
.0.11/out/lib/”
libsocketcan_CFLAGS=“-I/opt/libsocketcan-0.0.11/out/include” checking
build system type… config/autoconf/config.guess: unable to guess
system typeThis script, last modified 2008-01-23, 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 fromhttp://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEADIf the version you run (config/autoconf/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 = 2008-01-23
uname -m = aarch64 uname -r = 5.10.147-6.PhotonLinux.preempt.aarch64
uname -s = Linux uname -v = #1 SMP PREEMPT Wed Jan 3 13:41:51 CST 2024/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 =
5.10.147-6.PhotonLinux.preempt.aarch64 UNAME_SYSTEM = Linux UNAME_VERSION = #1 SMP PREEMPT Wed Jan 3 13:41:51 CST 2024 configure:
error: cannot guess build type; you must specify one
原因:一般是由于config.guess和config.sub脚本无法识别当前的操作系统类型导致的
解决:
下载 config.guess和config.sub放到/usr
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
然后在config的命令后面带上 --build=arm,其中平台根据自己的硬件确定