Hi All,
I'm having a problem compiling the ommysql plugin for rsyslogd (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I have managed to build rsyslogd following the instructions here: http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml, but it seems a bit outdated since running ./configure no longer has an "--enable-mysql" option.
To build ommysql separately, I do the following steps
cd plugins/ommysql
tar -xzf ommysql.tar.gz
cd rsyslog-ommysql-1.19.8
./configure
At this point it fails, saying:
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
So, I copy install-sh from rsyslogd and try again:
cp ../../../install-sh .
./configure
and I get:
configure: error: cannot run /bin/sh ./config.sub
Then i copy config.sub and config.guess from /usr/lib/rpm and run it again and this time ./configure completes without any problem. However, upon running make, I get this:
[root at syslog2 rsyslog-ommysql-1.19.8]# make
make all-am
make[1]: Entering directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
/bin/sh: ./../../depcomp: No such file or directory
make[1]: *** [ommysql_la-ommysql.lo] Error 127
make[1]: Leaving directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
make: *** [all] Error 2
I have searched for anyone having similar problems and they suggested installing libtool (which I've done) would solve the problem. However, I'm still not able to compile this plugin. Is there something I'm missing here? Any help would be much appreciated.
Regards,
Leigh
I'm having a problem compiling the ommysql plugin for rsyslogd (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I have managed to build rsyslogd following the instructions here: http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml, but it seems a bit outdated since running ./configure no longer has an "--enable-mysql" option.
To build ommysql separately, I do the following steps
cd plugins/ommysql
tar -xzf ommysql.tar.gz
cd rsyslog-ommysql-1.19.8
./configure
At this point it fails, saying:
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
So, I copy install-sh from rsyslogd and try again:
cp ../../../install-sh .
./configure
and I get:
configure: error: cannot run /bin/sh ./config.sub
Then i copy config.sub and config.guess from /usr/lib/rpm and run it again and this time ./configure completes without any problem. However, upon running make, I get this:
[root at syslog2 rsyslog-ommysql-1.19.8]# make
make all-am
make[1]: Entering directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
/bin/sh: ./../../depcomp: No such file or directory
make[1]: *** [ommysql_la-ommysql.lo] Error 127
make[1]: Leaving directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
make: *** [all] Error 2
I have searched for anyone having similar problems and they suggested installing libtool (which I've done) would solve the problem. However, I'm still not able to compile this plugin. Is there something I'm missing here? Any help would be much appreciated.
Regards,
Leigh