2015年2月7日 星期六

Compile Collectd from source

$ git clone https://github.com/collectd/collectd.git
$ cd collectd
$ ./build.sh
$ ./configure
$ make
# make all install 


Error :
$ ./build.sh
WARNING: `lex' not found!
Please make sure that `lex' is installed and is in one of the
directories listed in the PATH environment variable.
WARNING: `yacc' not found!
Please make sure that `yacc' is installed and is in one of the
directories listed in the PATH environment variable.
Solution :
# apt-get install byacc flex
# apt-get install bison


Error :
$ ./build.sh
configure.ac:1909: warning: macro 'AM_PATH_LIBGCRYPT' not found in library
Solution :
# apt-get install libgcrypt20-dev





References :

Development Information – collectd – The system statistics collection daemon
First steps - collectd Wiki

how to install Lex and Yacc in Ubuntu? - Stack Overflow 
[collectd] Compile git clone
使用collectd与visage收集kvm虚拟机性能实时图形 - - 博客频道 - CSDN.NET

沒有留言:

張貼留言