gpt4 book ai didi

macos - 为什么 lsyncd 需要 xnu?

转载 作者:行者123 更新时间:2023-12-04 05:54:14 25 4
gpt4 key购买 nike

我正在完成在 Mac OS X(准确地说是 10.7.3)上编译 lsyncd 的步骤。

尽管 lysncd 源代码中有几个小的语法错误,但最终还是设法编译了它;我从 Axel Kittenberger(管理 lsyncd 的开发人员)那里了解到编译需要 XNU。

引用:-

  • http://www.opensource.apple.com/release/mac-os-x-1073/
  • http://en.wikipedia.org/wiki/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: http://osxbook.com/software/fslogger/

    关于macos - 为什么 lsyncd 需要 xnu?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9713752/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com