开发者

Building OpenSSH on Cygwin

I'm trying to build OpenSSH 5.1 on Cygwin. I'm using the following configure command:

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

The configure command runs OK, but when I try to make I get this error:

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

I'm a bit stuck. Anyone got any ideas.


The particular problem in this build was that the Cygwin system didn't have the minires package installed. You should have first installed minires (1.02 or smth) which installs the necessary arpa/nameser*.h and resolv.h files in the appropriate places (/usr/local/include or /usr/include).


Openssh is available in Cygwin. Just use that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜