Ubuntu 64 上的 gethostbyaddr

发布于 2024-10-17 18:54:59 字数 434 浏览 6 评论 0原文

运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

农村范ル 2024-10-24 18:54:59

执行

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.

油焖大侠 2024-10-24 18:54:59

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 the configure script.

I don't know why the configure script fails, but you may want to remove all lines referencing gethostbyaddr from mozart/platform/emulator/configure.in, followed by an autoreconf.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文