编译安装rsyslog

安装gcc-c++
  615  yum -y install gcc c++
  616  yum -y install gcc-c++
安装libestr、libee
wget http://libestr.adiscon.com/files/download/libestr-0.1.10.tar.gz
  621  tar xvf libestr-0.1.10.tar.gz 
  622  cd libestr-0.1.10
  654  ./configure CC="gcc -m64" --prefix=/usr --libdir=/usr/lib64
  655  make && make install
wget http://www.libee.org/files/download/libee-0.4.1.tar.gz
  656  cd ../libee-0.4.1
  658  ./configure --prefix=/usr CC="gcc -m64" PKG_CONFIG_PATH="/usr/lib64/pkgconfig" --libdir=/usr/lib64
  659  make && make install
安装libfastjson(CentOS5选择0.99.0版本)
  672  wget http://download.rsyslog.com/libfastjson/libfastjson-0.99.2.tar.gz
  674  tar xvf libfastjson-0.99.2.tar.gz 
  675  cd libfastjson-0.99.2
  689  ./configure --prefix=/usr CC="gcc -m64" PKG_CONFIG_PATH="/usr/lib64/pkgconfig" --libdir=/usr/lib64
  690  make && make install
安装liblognorm
       wget http://www.liblognorm.com/download/files/download/liblognorm-1.1.3.tar.gz
 1026  cd liblognorm-1.1.3
 1028  ./configure --prefix=/usr CC="gcc -m64" PKG_CONFIG_PATH="/usr/lib64/pkgconfig" --libdir=/usr/lib64
 1029  make
 1030  make install
安装zlib、uuid、curl、crypt、log
  698  yum install zlib-devel
  702  yum -y install libuuid-devel
  704  yum -y install curl-devel
  711  yum install -y libgcrypt-devel
  715  yum install -y liblogging-devel
安装rsyslog
  716  cd rsyslog-8.18.0
  717  ./configure --enable-elasticsearch --enable-mmnormalize --enable-imfile --disable-liblogging-stdlog --enable-mysql --prefix=/usr/local/rsyslog
  718  make && make install

 

posted @ 2017-06-23 14:31  Redheat  阅读(2275)  评论(0编辑  收藏  举报