GrowthForecast

GrowthForecastセットアップ。必要ないものもたぶん入れてる…

sudo apt-get install -y pkgconfig glib2-devel gettext libxml2-devvel libxml2-dev pango-devel cairo-devel
sudo apt-get install -y build-essential cpanminus
sudo apt-get install -y libmodule-depends-perl libmodule-install-perl libserver-starter-perl libalien-sdl-perl libalien-sdl-dev-perl librrds-perl

cpanm -n inc
cpanm -n MyBuilder

cpanm -n Alien::RRDtool  がインストールできない

workディレクトリにおりて、Makefile.PLとBuilder.PLを編集(’.’ in @INC問題とその対処法についてを参照)。

use FindBin;
use lib $FindBin::Bin;

これを追加してmakeして、インストール。一般ユーザだとダメだったので、rootで入れちゃう。

cpanm n GrowthForecast
mkdir growthforecast
growthforecast.pl –data-dir /home/pi/growthforecast