Skip to content

Instantly share code, notes, and snippets.

@mzp
Created August 2, 2012 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzp/3237771 to your computer and use it in GitHub Desktop.
Save mzp/3237771 to your computer and use it in GitHub Desktop.
JRuby on WindowsでFluentdを動かす方法

JRuby on Windowsでfluentdを動かす方法

前提

  • JRuby 1.6.7.2(1.7.0 preview1だと動かない?)
  • MinGW

また上記二つにパスを通してください。 ボクは以下のような run.bat を作っています。

set PATH=C:\jruby-1.6.7.2\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;%PATH%
cmd

fluentdのインストール

1) JRuby対応版fluentdのダウンロード

https://github.com/mzp/fluentd/tree/jruby をローカルにダウンロードする。 git cloneがオススメ。

2) 依存ライブラリのインストール

$ gem install bundler
$ cd c:\path\to\fluentd
$ jruby --1.9 -S bundle install

3) 実行

$ jruby --1.9 -S bundle exec jruby --1.9 -S fluentd -c fluent.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment