2013-03-19 176 views
0

我正面臨FLUENTD gem安裝的問題。
問題::問題:Windows 7上的Fluentd gem安裝

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

+0

遺憾的是目前Fluentd不支持Windows。 – 2013-03-19 14:55:08

+0

哦..感謝您的信息。不幸的是,我沒有注意到..你可以建議我可以在Windows中運行的類似工具嗎? – 2013-03-20 06:28:30

回答

0

log4r的或日誌可以用一點點工作 潛在的替代品,如果你想記錄的事件,而不是它們路由到其他部分應用程序的 。

您的要求是什麼?

+0

我打算使用Mongodb作爲數據庫執行日誌歸檔/分析 – 2013-04-05 04:34:58

+0

Mongo將它的文檔存儲在BSON中,而不是JSON,這完全是另一回事。如果你想使用mongo,你需要用你自己的代碼來完成。如果你想存儲在JSON中,你可以使用CouchDB。如果你能告訴我你想要走哪條路,我可以在這裏寫一些代碼來幫助你開始。 – 2013-04-05 12:06:38