0

我正在尝试在 Cygwin 上构建 OpenSSH 5.1。我正在使用以下配置命令:

./configure --prefix=/usr --sysconfdir=/etc --libexecdir='${sbindir}' \
--localstatedir=/var --datadir='${prefix}/share' --mandir='${datadir}/man' \
--infodir='${datadir}/info'

配置命令运行正常,但是当我尝试 make 时出现此错误:

gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -fno-builtin-memset  -I. -I.. -I. -
..  -DHAVE_CONFIG_H -c bsd-arc4random.c
In file included from ../openbsd-compat/openbsd-compat.h:45,
                 from ../includes.h:169,
                 from bsd-arc4random.c:17:
../openbsd-compat/getrrsetbyname.h:57:26: arpa/nameser.h: No such file or directory
../openbsd-compat/getrrsetbyname.h:59:20: resolv.h: No such file or directory

我有点卡住了。任何人都有任何想法。

4

2 回答 2

2

这个构建中的特殊问题是 Cygwin 系统没有安装 minires 包。您应该首先安装 minires(1.02 或 smth),它将必要的 arpa/nameser*.h 和 resolv.h 文件安装在适当的位置(/usr/local/include 或 /usr/include)。

于 2011-12-09T14:14:59.027 回答
-2

Openssh 在 Cygwin 中可用。就用那个。

于 2010-01-29T03:30:02.130 回答