擅长:python、mysql、java
<p>我自己也遇到了这个问题。经过大量研究,得出以下结论:</p>
<p>cygwin不支持<code>eventfd</code>功能。如果您签入<code>/usr/include/sys</code>,您会注意到<code>eventfd.h</code>不存在。我不知道为什么cygwin不支持这个——但是我找到了<a href="https://cygwin.com/ml/cygwin/2012-10/msg00198.html" rel="nofollow noreferrer">https://cygwin.com/ml/cygwin/2012-10/msg00198.html</a>它暗示了很多,而且还有丢失的头文件,我的结论是在添加之前我们是SOL。在</p>
<p>下面是glibc的github repo,其中包含eventfd.h:
<a href="https://github.com/lattera/glibc/tree/a2f34833b1042d5d8eeb263b4cf4caaea138c4ad/sysdeps/unix/sysv/linux/sys" rel="nofollow noreferrer">https://github.com/lattera/glibc/tree/a2f34833b1042d5d8eeb263b4cf4caaea138c4ad/sysdeps/unix/sysv/linux/sys</a></p>
<p>下面是cygwin中包含的核心devel文件的列表(注意eventfd是缺少的文件之一):
<a href="https://cygwin.com/cgi-bin2/package-grep.cgi?grep=cygwin-devel&arch=x86" rel="nofollow noreferrer">https://cygwin.com/cgi-bin2/package-grep.cgi?grep=cygwin-devel&arch=x86</a></p>
<p>顺便说一句——如果你想安装ipython笔记本(这就是我遇到这个错误的原因),作为一种解决方法,我使用了瓦卡里.io它为ipython笔记本提供了一个web接口。在</p>