install probelms on CentOS 4.2

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

install probelms on CentOS 4.2

Postby graycat on Fri Nov 18, 2005 5:43 pm

*WARNING: windows admin trying to drive linux!* :shock: :lol:

hey all,
Can someone give me a hand sorting this problem i've got with installing rsyslog, please? I've got a CentOS 4.2 box I've installed running Apache & MySQL at the moment with the aim of creating a centralised logging server for our windows environment...... but i'm having issues installing rsyslog.
so far i've followed the step by step guide and it all goes fine up untill "make" then it all goes slightly Pete Tong and I see this:
Code: Select all
[root@box1 linux]# make install
install ../rfc3195d.8 /usr/share/man/man8/rfc3195d.8
install ../rsyslogd.8 /usr/share/man/man8/rsyslogd.8
install ../rsyslog.conf.5 /usr/share/man/man5/rsyslog.conf.5
cc -s -lpthread -o syslogd syslogd.o pidfile.o template.o outchannel.o stringbuf.o srUtils.o parse.o
syslogd.o(.text+0x208c): In function `initMySQL':
: undefined reference to `mysql_init'
syslogd.o(.text+0x20c5): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x20ee): In function `initMySQL':
: undefined reference to `mysql_real_connect'
syslogd.o(.text+0x2118): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2142): In function `initMySQL':
: undefined reference to `mysql_error'
syslogd.o(.text+0x214e): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2189): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2281): In function `initMySQL':
: undefined reference to `mysql_close'
syslogd.o(.text+0x27f5): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2818): In function `fprintlog':
: undefined reference to `mysql_query'
syslogd.o(.text+0x283d): In function `fprintlog':
: undefined reference to `mysql_error'
syslogd.o(.text+0x2849): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x287d): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2aa4): In function `fprintlog':
: undefined reference to `mysql_close'
syslogd.o(.text+0x6484): In function `die':
: undefined reference to `mysql_close'
syslogd.o(.text+0x8531): In function `init':
: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
make: *** [syslogd] Error 1


any ideas what i've done wrong? i've tried it with both 0 and 1 set in the Makefile as I suspect it's a MySQL problem..... which is something else i'm trying to learn! :) lol

any help would be appreciated and earn virtual beer tokens :)
graycat
New
 
Posts: 4
Joined: Fri Nov 18, 2005 5:36 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

RE: install probelms on CentOS 4.2

Postby rgerhards on Fri Nov 18, 2005 5:47 pm

I suspect its a missing MySQL development package. Typically this package is named mysql-dev. Check that you have it.

Then, set the MySQL feature in makefile to 1. Run "make clean" and then make. If there is an error, please post the output of these two make runs.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

RE: install probelms on CentOS 4.2

Postby graycat on Tue Nov 22, 2005 9:54 am

thanks for the speedy answer, Rainer! :)

I've had a look through and the MySQL development package was partly installed. I'm going to remove and reinstall it afresh and see what that does.

I'll post again once i've got a result :) lol
graycat
New
 
Posts: 4
Joined: Fri Nov 18, 2005 5:36 pm

RE: install probelms on CentOS 4.2

Postby graycat on Wed Nov 23, 2005 5:55 pm

Right, I'm back again! :) I've managed to reinstall the mysql bits and pieces and have learnt a lot in just doing that :D lol

anyway, i now get:
Code: Select all
[root@box1 linux]# nano Makefile
[root@box1 linux]# make
cc -s -lpthread -o syslogd syslogd.o pidfile.o template.o outchannel.o stringbuf.o srUtils.o parse.o -lmysqlclient -L/usr/local/lib/mysql
[root@box1 linux]# make install
install ../rfc3195d.8 /usr/share/man/man8/rfc3195d.8
install ../rsyslogd.8 /usr/share/man/man8/rsyslogd.8
install ../rsyslog.conf.5 /usr/share/man/man5/rsyslog.conf.5
install -b -s syslogd /usr/sbin/rsyslogd
[root@box1 linux]#
which i think is good so i'm onto the next step in the world domination via centralised logging plan

Tim
graycat
New
 
Posts: 4
Joined: Fri Nov 18, 2005 5:36 pm

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron