MacにGrowthForecastをインストールしようとしてはまる
MacにGrowthForecastを導入しようとしたところ、Alien::RRDToolをインストールしようとしたところではまりました。
SoftwareDesign 6月号にある通りに、まずプラグインを一通りインストールしたあとで、Alien::RRDToolをインストールするために以下のコマンドを実行。
$ cpanm Alien::RRDTool
すると、こんなお叱りが、
! Finding Alien::RRDTool on cpanmetadb failed.
! Finding Alien::RRDTool on search.cpan.org failed.
! Finding Alien::RRDTool () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Alien::RRDTool ()
どうしたもんかと思っていたら、以下のページに解決方法がありました。
参考にさせていただいた記事はこちら。
GrowthForecast つかってみた
http://d.hatena.ne.jp/magicalhat/20120403/1333435826
動いた手順はこちら。
$ git clone git://github.com/kazeburo/GrowthForecast.git
$ cd GrowthForecast
$ cpanm -l extlib --installdeps .
$ cpanm -l extlib Alien::RRDtool
ちなみに、cpanmの-lオプションは、モジュールをインストールするディレクトリの相対パスを指定するようです。
GrowthForecast/extlibディレクトリに依存ライブラリやRRDToolをインストールしています。
そして、無事起動。
fluentdからgrowthforecastプラグインを使ってデータを渡してみよう。