configure:错误:libtool配置失败

时间:2014-07-23 11:35:28

标签: tcl libtool

我在tclreadline中为tclreadline2.1.0提供了./configure并出现了此错误

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes    
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

configure: error: libtool configure failed

请建议如何正确编译 感谢您的帮助

2 个答案:

答案 0 :(得分:6)

找到答案here。要使旧的configure脚本正常工作,您可以更新config.sub文件:

curl 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' > config.sub

这将用最新版本替换config.sub脚本。

答案 1 :(得分:0)

包看起来好像很久没有维护了。因此,用于构建配置脚本和辅助文件的autotools可能甚至都不知道x86-64

假设您安装了autotools - autoconf,automake,libtool等 - 您可以尝试运行autoreconf -ivf,然后再次尝试./configure。您可能会收到很多关于过时宏等的警告,但它可能会有效。