running the configure script for mozart oz gives me this:
checking for stdint.h... (cached) yes
checking for gethostbyaddr in -lnsl... no
checking for geth开发者_运维问答ostbyaddr 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 platformhow do I get gethostbyaddr on my latest ubuntu 64 machine?
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
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
.
精彩评论