我已经安装了Compass gem ( Compass -0.11.beta.2),以及Compass susy插件。每次我运行“指南针手表”,我得到的错误:
Errno::ENOSYS在/path/to/rb-inotify/inotify fier.rb: initialize inotify的第"60“行
这是错误引用的notifier.rb代码块
def initialize
@fd = Native.inotify_init
@watchers = {}
return unless @fd < 0
raise SystemCallError.new(
"Failed to initialize inotify" +
case FFI.errno
when Errno::EMFILE::Errno; ": the user limit on the total number of inotify instances has been reached."
when Errno::ENFILE::Errno; ": the system limit on the total number of file descriptors has been reached."
when Errno::ENOMEM::Errno; ": insufficient kernel memory is available."
else; ""
end,
This is line ["60"] ===> FFI.errno)
end我尝试过重新安装所有涉及到的gem,以及每个gem的3-4个不同版本,但每次我仍然得到相同的错误。有人能帮我一下吗?
发布于 2011-03-11 06:18:43
你需要升级你的系统。
对inotify_init(2)的底层调用将返回ENOSYS,这意味着该功能未在系统的libc中实现,甚至可能在内核中也不受支持。
(例如,一些旧版本的Fedora Linux似乎支持内核中的inotify功能,但没有提供公开该功能的glibc。)
https://stackoverflow.com/questions/5260515
复制相似问题