How to install nxlog on centos 5

I tried creating the RPM file although it didnt work I was able to install it
this way

pre-reqs:
yum install pcre-devel.x86_64 expat-devel.x86_64 libtool.x86_64 libcap-devel.x86_64 libdbi-devel.x86_64 pcre-devel.x86_64
yum install gcc
wget http://search.cpan.org/CPAN/authors/id/D/DO/DOUGM/ExtUtils-Embed-1.14.tar.gz
tar -zxvf ExtUtils-Embed-1.14.tar.gz
perl Makefile
make
make install

nxlog
wget https://nxlog.co/system/files/products/files/348/nxlog-ce-2.8.1248.tar.gz
tar -zxvf nxlog-ce-2.8.1248.tar.gz
cd nxlog-ce-2.8.1248/packaging/redhat/
vi nxlog.spec
(REMOVE THE: perl-ExtUtils-Embed )

bash make_rpm.sh
cd /tmp/nxlog/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/BUILD/nxlog-ce-2.8.1248
make
make install

which nxlog
/usr/bin/nxlog -h
nxlog-ce-2.8.1248

Tags: ,

1 thought on “nxlog centos 5

  1. Unfortunately, this does not work for me. Mine crashes with the “bash make_rpm.sh” command:
    xsinit.c: In function ‘xs_init’:
    xsinit.c:27: warning: initialization discards qualifiers from pointer target type
    xsinit.c:31: error: ‘my_perl’ undeclared (first use in this function)
    xsinit.c:31: error: (Each undeclared identifier is reported only once
    xsinit.c:31: error: for each function it appears in.)
    xsinit.c:31: warning: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
    xsinit.c:31: warning: passing argument 3 of ‘Perl_newXS’ from incompatible pointer type
    xsinit.c:32: warning: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
    xsinit.c:32: warning: passing argument 3 of ‘Perl_newXS’ from incompatible pointer type
    make[4]: *** [xm_perl_la-xsinit.lo] Error 1
    make[4]: Leaving directory `/home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/BUILD/nxlog-ce-2.8.1248/src/modules/extension/perl’
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/BUILD/nxlog-ce-2.8.1248/src/modules/extension’
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/BUILD/nxlog-ce-2.8.1248/src/modules’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/BUILD/nxlog-ce-2.8.1248/src’
    make: *** [all-recursive] Error 1
    error: Bad exit status from /home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/tmp/rpm-tmp.31604 (%build)
    RPM build errors:
    Bad exit status from /home/jamen/Software/nxlog-ce-2.8.1248/packaging/redhat/rpmbuild/tmp/rpm-tmp.31604 (%build)

Leave a Reply

Your email address will not be published. Required fields are marked *