configure: cannot guess build type

使用automake全家桶编译软件时,./configure报错:

1
2
3
$ ./configure
 ...
configure: error: cannot guess build type; you must specify one

盲猜了几种--build=参数并不管用——

但是可以让automake自己猜:

1
2
3
$ mv config.guess config.guess.old
$ cp /usr/share/automake*/config.guess .
$ ./configure

如果还不行就把config.sub也搬过来(