ubuntu 64上的gethostbyaddr

时间:2011-02-17 16:43:22

标签: c ubuntu autotools

运行莫扎特盎司的配置脚本给我这个:

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?

2 个答案:

答案 0 :(得分:2)

做一个

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

这解决了它。

答案 1 :(得分:0)

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

我不知道configure脚本失败的原因,但您可能希望从gethostbyaddr删除引用mozart/platform/emulator/configure.in的所有行,然后删除autoreconf