简体   繁体   English

为什么 lsyncd 需要 xnu?

[英]Why does lsyncd require xnu?

I am working through the steps of compiling lsyncd on Mac OS X (10.7.3 to be exact).我正在完成在 Mac OS X(确切地说是 10.7.3)上编译 lsyncd 的步骤。

Finally managed to it get it compiled despite a couple minor syntax errors in the lysncd source code;尽管 lysncd 源代码中存在一些小的语法错误,但最终还是设法编译了它; and I understand from Axel Kittenberger (the developer managing lsyncd) that the compilation requires XNU.我从 Axel Kittenberger(管理 lsyncd 的开发人员)那里了解到编译需要 XNU。

References:-参考:-

The configure step was done this way:-配置步骤是这样完成的: -

./configure --without-inotify --with-fsevents CFLAGS="-I /Users/calvin/xnu-1699.24.23/" LUA_CFLAGS="-I /opt/local/include" LUA_LIBS="/opt/local/lib/liblua.a" 

followed by some minor changes to the newly created Makefile (relating changing the path to asciidoc to my macports asciidoc location) and running然后对新创建的 Makefile 进行一些小的更改(将 asciidoc 的路径更改为我的 macports asciidoc 位置)并运行

make

So all goes well and I finally have the resulting lsyncd binary.所以一切顺利,我终于有了生成的lsyncd二进制文件。

My question is: why was xnu required in this process?我的问题是:为什么在这个过程中需要 xnu? (am curious to know) (很想知道)

Via Axel Kittenberger, author/maintainer of lsyncd, this is because:-通过 lsyncd 的作者/维护者 Axel Kittenberger,这是因为:-

Lsyncd accesses /dev/fsevents on a level that apple considers internal. Lsyncd 在苹果认为是内部的级别上访问 /dev/fsevents。 Lsyncds event source on OSX was based on this code: Link OSX 上的 Lsyncds 事件源基于以下代码: 链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM