首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu 64上的gethostbyaddr

Ubuntu 64上的gethostbyaddr
EN

Stack Overflow用户
提问于 2011-02-18 00:43:22
回答 2查看 441关注 0票数 2

运行mozart oz的配置脚本会得到以下结果:

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

如何在我最新的ubuntu 64机器上获取gethostbyaddr?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-02-24 21:19:40

做一个

sudo apt-get install tk-dev tcl-dev build-essential libc6-dev g++-multilib ia32-libs lib32z1-dev lib32gmp3-dev

这就解决了它。

票数 2
EN

Stack Overflow用户

发布于 2011-02-18 00:45:43

gethostbyaddr位于C库中,必须安装该库才能运行Ubuntu系统。configure脚本中可能存在错误。

我不知道为什么configure脚本会失败,但是您可能希望从mozart/platform/emulator/configure.in中删除引用gethostbyaddr的所有行,后面跟着一个autoreconf

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

https://stackoverflow.com/questions/5031833

复制
相关文章

相似问题

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