运行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?
发布于 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
这就解决了它。
发布于 2011-02-18 00:45:43
gethostbyaddr位于C库中,必须安装该库才能运行Ubuntu系统。configure脚本中可能存在错误。
我不知道为什么configure脚本会失败,但是您可能希望从mozart/platform/emulator/configure.in中删除引用gethostbyaddr的所有行,后面跟着一个autoreconf。
https://stackoverflow.com/questions/5031833
复制相似问题