错误 XmlConfigurator 在 mono 2.8 上出现 Nant 错误

发布于 2024-09-26 23:55:19 字数 1123 浏览 9 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难理解 2024-10-03 23:55:19

导出 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文