在64位机器下编译libghttp碰到的问题
libghttp是gnome下的HTTP客户端库, 实现http功能, 可以替换curl 的http功能, 在32位的机器上编译没问题, 在64位的机器上, configure 不过去. 错误信息是:
ltconfig: you must specify a 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 a host type. 解决方法是:
用 /usr/share/libtool/config.guess 覆盖 config.guess
用 /usr/share/libtool/config.sub 覆盖 config.sub
(如果没有这两个文件 先执行(sudo apt-get install libtool))
这样configure就可以猜出系统的类型了, 然后一切顺利.