GrowthForecast @ CentOS 6.5
Post date: 2014/08/10 23:52:54
- set up
# yum groupinstall "Development Tools"
# yum install pkgconfig glib2-devel gettext libxml2-devel pango-devel cairo-devel
# yum -y install perl-ExtUtils-MakeMaker
# yum -y install cpan
# yum install libyaml-devel
# yum install *YAML*
# cpan > o conf init urllist > o conf commit > quit
# cpan App::cpanminus
# useradd growthforecast # passwd growthforecast
# su - growthforecast
2. install GrowthForecast
$ cpanm --local-lib=~/perl5 local::lib && eval
$(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
$ cpanm -n GrowthForecast
$ mkdir data
$ makdir log
3. start
$ vi ~/.bashrc
export PERL_CPANM_OPT="--local-lib=~/perl5"
export PERL5LIB="/home/growthforecast/perl5/lib/perl5"
export PATH="~/perl5/bin:$PATH"
$ growthforecast.pl --port=5125 --enable-float-number --data-dir=/home/growthforecast/data > \
/home/growthforecast/log/growthforecast.log 2> /home/growthforecast/log/growthforecast.err &
4. stop
$ pkill -u growthforecast