Ubuntu 64 上的 gethostbyaddr
运行 mozart oz 的配置脚本给我这个:
检查 stdint.h...(已缓存)是
检查 -lnsl 中的 gethostbyaddr...否
检查 -lc 中的 gethostbyaddr...否
检查 gethostbyaddr...否
配置:错误:函数 gethostbyaddr 不可用。
系统无法构建。
配置:错误:/home/stewart/dev/mozart/mozart/platform/emulator/configure 模拟器失败
配置:错误:/home/stewart/dev/mozart/mozart/platform/configure 平台失败
如何在最新的 ubuntu 64 机器上获取 gethostbyaddr?
running the configure script for mozart oz gives me this:
checking for stdint.h... (cached) yes
checking for gethostbyaddr in -lnsl... no
checking for gethostbyaddr in -lc... no
checking for gethostbyaddr... no
configure: error: Function gethostbyaddr is not available.
The system cannot be built.
configure: error: /home/stewart/dev/mozart/mozart/platform/emulator/configure failed for emulator
configure: error: /home/stewart/dev/mozart/mozart/platform/configure failed for platform
how do I get gethostbyaddr on my latest ubuntu 64 machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
执行
sudo apt-get install tk-dev tcl-dev build-essential libc6-dev g++-multilib ia32-libs lib32z1-dev lib32gmp3-dev
这可以修复它。
do a
sudo apt-get install tk-dev tcl-dev build-essential libc6-dev g++-multilib ia32-libs lib32z1-dev lib32gmp3-dev
this fixes it.
gethostbyaddr
位于 C 库中,必须安装才能运行 Ubuntu 系统。configure
脚本中可能存在错误。我不知道为什么
configure
脚本失败,但您可能需要从mozart/platform/emulator/configure.ingethostbyaddr
的所有行code>,后跟autoreconf
。gethostbyaddr
is in the C library, which must be installed for a working Ubuntu system. There's probably a bug in theconfigure
script.I don't know why the
configure
script fails, but you may want to remove all lines referencinggethostbyaddr
frommozart/platform/emulator/configure.in
, followed by anautoreconf
.