ARM平台编译dante出现【configure: error: cannot guess build type; you must specify one】解决方法

编译dante的时候出现:

root@ak:~/dante-1.4.2# ./configure --prefix=/usr/local/dante --sysconfdir=/etc  --disable-client
Configuring Dante 1.4.2:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2011-10-01, 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://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=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2011-10-01

uname -m = aarch64
uname -r = 4.4.172-*
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Jan 14 13:21:03 CST 2020

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.4.172-*
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Tue Jan 14 13:21:03 CST 2020
configure: error: cannot guess build type; you must specify one

意思是无法检测到编译的平台,需要我们手动指定一个。
由于我使用的arm平台,因此加个参数--build=arm-linux搞定。
代码如下:

./configure --prefix=/usr/local/dante \
 --sysconfdir=/etc  --disable-client --build=arm-linux

你可能感兴趣的:(linux,arm,gcc/gdb编译调试)