我正在完成在 Mac OS X(确切地说是 10.7.3)上编译 lsyncd 的步骤。
尽管 lysncd 源代码中存在一些小语法错误,但最终还是成功编译了它;我从 Axel Kittenberger(管理 lsyncd 的开发人员)那里了解到编译需要 XNU。
引用文献:-
配置步骤是这样完成的:-
./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"
随后对新创建的 Makefile 进行了一些细微更改(将 asciidoc 的路径更改为我的 macports asciidoc 位置)并运行
make
一切顺利,我终于得到了 lsyncd
二进制文件。
我的问题是:为什么在此过程中需要 xnu?(我很想知道)
最佳答案
通过 lsyncd 的作者/维护者 Axel Kittenberger,这是因为:-
Lsyncd accesses /dev/fsevents on a level that apple considers internal. Lsyncds event source on OSX was based on this code: Link
关于macos - 为什么 lsyncd 需要 xnu?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9713752/