2013-03-19 3 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/ 

질문 : I Fluentd에서 설치를 진행 할 수 있도록 방법이 cool.io 의존성 문제를 정렬하는 방법?

관련 링크 :https://rubygems.org/gems/fluentd

+0

Fluentd에 Windows를 지원하지 않습니다 불행하게도 현재. –

+0

오 .. 정보 주셔서 감사합니다. 불행히도 눈치 채지 못했습니다. 창문에서 실행할 수있는 유사한 도구를 제안 해 주시겠습니까? –

답변

0

Log4r 또는 로깅 약간의 작업 잠재적 인 대안이 될 수 있습니다 당신이 다른 부분 응용 프로그램의 에 이벤트가 아닌 경로를 기록하십시오.

귀하의 요구 사항은 무엇입니까?

+0

Mongodb와 함께 로그 보관/분석을 데이터베이스 –

+0

으로 수행하려고합니다. Mongo는 다른 이야기 인 JSON가 아닌 BSON에 문서를 저장하고 있습니다. mongo를 사용하려면 자신의 코드로 수행해야합니다. JSON에 저장하려면 CouchDB를 사용할 수있다. 내가 원하는 방향으로 말할 수 있다면 시작하는 데 도움이되는 몇 가지 코드를 여기에 쓸 수 있습니다. –

0

Fluentd는 Windows에서 실행되지 않습니다. ngxlog를 사용하여 Windows에서 Fluentd로 로그를 수집 할 수 있습니다. 이 블로그 항목을 확인하십시오.