【问题标题】:Issue : Fluentd gem installation on Windows 7问题:在 Windows 7 上安装 Fluentd gem
【发布时间】:2013-03-19 13:23:10
【问题描述】:

我在安装 FLUENTD gem 时遇到问题。
Issue::

C:\RailsInstaller\Ruby1.9.3\bin>gem install fluentd-0.10.32.gem  
Temporarily enhancing PATH to include DevKit...  
Building native extensions.  This could take a while...  
ERROR:  Error installing fluentd-0.10.32.gem:  
        ERROR: Failed to build gem native extension.    
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb  
checking for rb_thread_blocking_region()... yes  
checking for rb_thread_alone()... yes  
checking for rb_str_set_len()... yes  
checking for clock_gettime() in -lrt... no   
checking for sys/select.h... no  
checking for poll.h... no  
checking for sys/epoll.h... no  
checking for sys/event.h... no  
checking for port.h... no  
checking for sys/resource.h... no  
checking for sysctlbyname() in sys/param.h,sys/sysctl.h... no  
creating Makefile  
make  
generating cool.io_ext-i386-mingw32.def  
compiling cool.io_ext.c  
In file included from cool.io.h:11:0,                
from cool.io_ext.c:11:  c:/RailsInstaller/Ruby1.9.3/include/ruby-  
1.9.1/ruby/backward/rubyio.h:2:2: warning: warning use "ruby/io.h"   
instead of "rubyio.h"  
.  
..  
..//Issues a lot of warnings 
.  stat_watcher.c: In function 'Coolio_StatInfo_build':  
stat_watcher.c:249:13: error: 'ev_statdata' has no member named 'st_blksize' 
stat_watcher.c:250:13: error: 'ev_statdata' has no member named 'st_blocks'  
make: *** [stat_watcher.o] Error 1  Gem files will remain installed in          
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cool.io-1.1.0 for 
inspection.  
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cool.io-1.1.0/ext/cool.io/gem_make.out 


RubyGems Environment:   
- RUBYGEMS VERSION: 1.8.24   
- RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [i386-mingw32]  
- INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1  
- RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe  
- EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin  
- RUBYGEMS PLATFORMS:  
- ruby      
- x86-mingw32   
- GEM PATHS:  
- C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1       
-  C:/Users/ssabaris/.gem/ruby/1.9.1  
- GEM CONFIGURATION:  
- :update_sources => true  
- :verbose => true  
- :benchmark => false   
- :backtrace => false  
- :bulk_threshold => 1000  
- REMOTE SOURCES:  
- http://rubygems.org/

问题 :: 如何解决这个 cool.io 依赖问题,以便我可以继续安装 Fluentd?

相关链接::https://rubygems.org/gems/fluentd

【问题讨论】:

  • 很遗憾,当前的 Fluentd 不支持 Windows。
  • 哦.. 谢谢你的信息。很遗憾我没有注意到。你能给我推荐一些可以在 Windows 中运行的类似工具吗?

标签: ruby rubygems gem fluentd


【解决方案1】:

Log4r 或 Logging 可以成为潜在的替代方案,只需稍加工作即可 如果您想记录事件而不是将它们路由到其他部分 您的应用程序。

你的要求是什么?

【讨论】:

  • 我打算使用 Mongodb 作为数据库进行日志归档/分析
  • Mongo 将其文档存储在 BSON 而不是 JSON 中,这完全是另一回事。如果您想使用 mongo,您需要使用自己的一些代码来完成。如果你想以 JSON 格式存储,你可以使用 CouchDB。如果你能告诉我你想走哪条路,我可以在这里写一些代码来帮助你开始。
【解决方案2】:

Fluentd 不能在 Windows 上运行。您可以使用 ngxlog 将日志从 Windows 收集到 Fluentd。请查看此博客条目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-01
    • 1970-01-01
    • 2011-07-19
    • 2015-08-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多