ltconfig: you must&nbs…

来源:互联网 发布:telnet本地端口号 编辑:程序博客网 时间:2024/05/05 13:17
在64位机器下编译libghttp碰到的问题

libghttp是gnome下的HTTP客户端库, 实现http功能, 可以替换curl 的http功能, 在32位的机器上编译没问题, 在64位的机器上, configure 不过去. 错误信息是:

ltconfig: you must specify host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed

其实真正有用的是上面的

checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

大意是configure认不出系统的类型, 然后出现下面的 you must specify host type. 解决方法是:

用 /usr/share/libtool/config.guess 覆盖 config.guess
用 /usr/share/libtool/config.sub 覆盖 config.sub

(如果没有这两个文件先执行(sudo apt-get install libtool))

这样configure就可以猜出系统的类型了, 然后一切顺利.