首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置:错误: libtool配置失败

配置:错误: libtool配置失败
EN

Stack Overflow用户
提问于 2014-07-23 19:35:28
回答 2查看 7.4K关注 0票数 0

我在tclreadline2.1.0的tclreadline中给出了./configure,得到了这个错误

代码语言:javascript
复制
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

请给出正确编译的建议谢谢您的帮助

EN

回答 2

Stack Overflow用户

发布于 2014-11-30 04:47:50

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

代码语言:javascript
复制
curl 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' > config.sub

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

票数 8
EN

Stack Overflow用户

发布于 2014-07-23 19:54:56

这个包看起来已经很久没有维护过了。因此,用于构建配置脚本和辅助文件的自动工具可能甚至不知道x86-64

假设你已经安装了自动工具-- autoconf,automake,libtool等等--你可以尝试运行autoreconf -ivf,然后再次尝试./configure。你可能会收到很多关于过时宏等的警告,但它可能会起作用。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24909409

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档