错误 XmlConfigurator 在 mono 2.8 上出现 Nant 错误
我在 Mac OS X 10.6.4 上使用简单的 nant (0.90) 进行了测试,但收到以下错误消息。 即使有错误消息,我也可以运行 nant 来成功获取二进制文件。
可能出了什么问题?
log4net:ERROR XmlConfigurator: Failed to initialize configuration file watcher for file [/Library/Frameworks/Mono.framework/Versions/2.8/share/NAnt/bin/NAnt.exe.config] System.DllNotFoundException: libc.dylib at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue () at System.IO.KeventWatcher.GetInstance (IFileWatcher& watcher) [0x00000] in :0 at System.IO.FileSystemWatcher.InitWatcher () [0x00000] in :0 at System.IO.FileSystemWatcher..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor () at log4net.Config.XmlConfigurator+ConfigureAndWatchHandler..ctor (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0 at log4net.Config.XmlConfigurator+ConfigureAndWatchHandler.StartWatching (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0 at log4net.Config.XmlConfigurator.ConfigureAndWatch (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0
I tested with simple nant (0.90) on Mac OS X 10.6.4, but I got the following error message.
Even with the error message, I could run nant to get the binary successfully.
What might be wrong?
log4net:ERROR XmlConfigurator: Failed to initialize configuration file watcher for file [/Library/Frameworks/Mono.framework/Versions/2.8/share/NAnt/bin/NAnt.exe.config] System.DllNotFoundException: libc.dylib at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue () at System.IO.KeventWatcher.GetInstance (IFileWatcher& watcher) [0x00000] in :0 at System.IO.FileSystemWatcher.InitWatcher () [0x00000] in :0 at System.IO.FileSystemWatcher..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor () at log4net.Config.XmlConfigurator+ConfigureAndWatchHandler..ctor (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0 at log4net.Config.XmlConfigurator+ConfigureAndWatchHandler.StartWatching (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0 at log4net.Config.XmlConfigurator.ConfigureAndWatch (ILoggerRepository repository, System.IO.FileInfo configFile) [0x00000] in :0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
导出 DYLD_FALLBACK_LIBRARY_PATH="/usr/lib/:$DYLD_FALLBACK_LIBRARY_PATH" 应该位于 bash 文件中。
export DYLD_FALLBACK_LIBRARY_PATH="/usr/lib/:$DYLD_FALLBACK_LIBRARY_PATH" should have been in bash file.