checking host system type... configure: error: can not guess host type; you must specify one

在MAC上安装WGET的时候(根据http://www.arefly.com/mac-wget/),进行到

./configure --with-ssl=openssl

这一步时提示:

creating cache ./config.cache
configuring for GNU Wget 1.6
checking host system type... configure: error: can not guess host type; you must specify one

于是查找资料

./configure --help

找到如下信息:

Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]

我想反正就是在这个机器上安装,应该选TARGET,于是

./configure --with-ssl=openssl --host=TARGET

通过,然后再make;sudo make install,一路都是成功

你可能感兴趣的:(mac)