install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

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

Moderator: rgerhards

install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Tue Feb 17, 2009 11:50 pm

Ok, i'm close now. Here is what I did and it seems mbiebl is the one to answer but surely if anyone else knows chime in.
1. dget -x http://ftp.de.debian.org/debian/pool/ma ... 20.4-1.dsc
2. dpkg-source -x rsyslog_3.20.4-1.dsc
3. dpkg-buildpackage -uc -us

Now step 3 gave me:
Code: Select all
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package rsyslog
dpkg-buildpackage: source version 3.20.4-1
dpkg-buildpackage: source changed by Michael Biebl <biebl@debian.org>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7.0.9) quilt libpq-dev libkrb5-dev libgnutls-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)


Now I don't want/need kerberos support but I do wany mysql support. How do I add/remove support for the features I want when doing this way??


And just for history I tried the rsyslog.tgz from the rsyslog site but that doens't seem to install correctly and I also successfully installed from ubuntu repositories however that version is really old so I can't do stuff like:
Code: Select all
$ModLoad ommysql  # load the output driver (use ompgsql for PostgreSQL)
$ModLoad imudp    # network reception
$UDPServerRun 514 # start a udp server at port 514
$ModLoad imuxsock # local message reception

$WorkDirectory /rsyslog/work # default location for work (spool) files

$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName dbq    # set file name, also enables disk mode
$ActionResumeRetryCount -1  # infinite retries on insert failure
# for PostgreSQL replace :ommysql: by :ompgsql: below:
*.*       :ommysql:hostname,dbname,userid,password;

which says requires 3.11 or above...

help, pointers?
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Professional Services Information

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

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby mbiebl » Wed Feb 18, 2009 10:18 am

Your debhelper version is too old, so the build-dependencies are not satisfied. Which version of ubuntu are you running?
mbiebl
Advanced
 
Posts: 39
Joined: Wed Dec 05, 2007 12:46 am

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby mbiebl » Wed Feb 18, 2009 10:51 am

Or simply not installed.
Run
apt-get install build-essential debhelper quilt libpq-dev libkrb5-dev libgnutls-dev
and try again
mbiebl
Advanced
 
Posts: 39
Joined: Wed Dec 05, 2007 12:46 am

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Wed Feb 18, 2009 9:31 pm

I'm on fully update 8.04 LTS. Yes it was debhelper simply was not installed.

Now i have a bunch of nice .debs but I think I'm back to the original issue with needing to remove ubuntu-minimal and such....
when i try to install the .debs here is the output:

Code: Select all
dpkg -i rsyslog_3.20.4-1_i386.deb rsyslog-mysql_3.20.4-1_i386.deb
Selecting previously deselected package rsyslog.
dpkg: regarding rsyslog_3.20.4-1_i386.deb containing rsyslog:
rsyslog conflicts with linux-kernel-log-daemon
  klogd provides linux-kernel-log-daemon and is installed.
dpkg: error processing rsyslog_3.20.4-1_i386.deb (--install):
conflicting packages - not installing rsyslog
(Reading database ... 53901 files and directories currently installed.)
Preparing to replace rsyslog-mysql 3.20.4-1 (using rsyslog-mysql_3.20.4-1_i386.deb) ...
Unpacking replacement rsyslog-mysql ...
dpkg: dependency problems prevent configuration of rsyslog-mysql:
rsyslog-mysql depends on rsyslog (= 3.20.4-1); however:
  Package rsyslog is not installed.
dpkg: error processing rsyslog-mysql (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
rsyslog_3.20.4-1_i386.deb
rsyslog-mysql


So what do you recommend here?
Code: Select all
aptitude remove klogd

and then that will probably tell me to remove ubuntu-minimal?
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 12:44 am

this talks about what i'm dealing with...
https://bugs.launchpad.net/ubuntu/+sour ... +bug/42555
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 12:57 am

UGH! stuck again, i removed klogd and ubuntu-minimal so I could get past that and now...
Code: Select all
Unpacking rsyslog (from rsyslog_3.20.4-1_i386.deb) ...
Selecting previously deselected package rsyslog-mysql.
Unpacking rsyslog-mysql (from rsyslog-mysql_3.20.4-1_i386.deb) ...
dpkg: dependency problems prevent configuration of rsyslog:
rsyslog depends on lsb-base (>= 3.2-14); however:
  Version of lsb-base on system is 3.2-4ubuntu1.
dpkg: error processing rsyslog (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rsyslog-mysql:
rsyslog-mysql depends on rsyslog (= 3.20.4-1); however:
  Package rsyslog is not configured yet.


so i think I'll have to make a deb package of the latest rsyslog that will work with the lsb-base v3.2-4

anyone know what version that would be and where I could get the .dsc file to build the .deb from???
This is way too complicated, am I the only one in the world trying to get a newer version of rsyslog on ubuntu server that isn't years old from the official repo??
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby mbiebl » Thu Feb 19, 2009 1:46 am

That's unfortunate, but you can use this workaround

diff --git a/debian/control b/debian/control
index 38dc98d..8b472ce 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Package: rsyslog
Architecture: any
Priority: important
Conflicts: system-log-daemon, linux-kernel-log-daemon
-Provides: system-log-daemon, linux-kernel-log-daemon
+Provides: system-log-daemon, linux-kernel-log-daemon, klogd, sysklogd
Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14)
Recommends: logrotate
Suggests: rsyslog-mysql | rsyslog-pgsql, rsyslog-doc, rsyslog-gnutls, rsyslog-gssapi

This will make it possible to keep ubuntu-minimal installed when you install rsyslog.
mbiebl
Advanced
 
Posts: 39
Joined: Wed Dec 05, 2007 12:46 am

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 1:58 am

assuming i just remove ubuntu-minimal as in my last post I'm stuck at the lsb-base version.
or if i do what you said and just patch the dependency (at least thats what it looks like its doing), still latest rsyslog requires newer lsb-base than ubuntu hardy has...

Do you know that latest rsyslog I can get that will work with lsb-base 3.2-4 or older?
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby mbiebl » Thu Feb 19, 2009 3:24 pm

lsb-base 3.2-14 is required (as can be read from the changelog) for the status action in the init script (it's implemented using status_of_proc).
That should do

diff --git a/debian/control b/debian/control
index 38dc98d..ab864d6 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,8 @@ Package: rsyslog
Architecture: any
Priority: important
Conflicts: system-log-daemon, linux-kernel-log-daemon
-Provides: system-log-daemon, linux-kernel-log-daemon
-Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14)
+Provides: system-log-daemon, linux-kernel-log-daemon, klogd, sysklogd
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-4)
Recommends: logrotate
Suggests: rsyslog-mysql | rsyslog-pgsql, rsyslog-doc, rsyslog-gnutls, rsyslog-gssapi
Description: enhanced multi-threaded syslogd
diff --git a/debian/rsyslog.init b/debian/rsyslog.init
index c3b6267..75368bf 100644
--- a/debian/rsyslog.init
+++ b/debian/rsyslog.init
@@ -121,11 +121,8 @@ case "$1" in
$0 stop
$0 start
;;
- status)
- status_of_proc -p $RSYSLOGD_PIDFILE $RSYSLOGD_BIN $RSYSLOGD && exit 0 || exit $?
- ;;
*)
- echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
exit 3
;;
esac
mbiebl
Advanced
 
Posts: 39
Joined: Wed Dec 05, 2007 12:46 am

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 7:49 pm

if i try diff --git it says unrecognized option '--git'. I don't see it in the man page for diff either...

I'm actually not sure what that is you are sending me. should I copy and paste it and save it as a certail file?
I do see the control file you are referencing and can manually edit it with the changes but still wondering what this diff --git stuff is.
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 8:53 pm

thanks mbiebl. It is now running well. So much better than version 1 of rsyslog.
maybe you can push to get this into hardy-backports?
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby rgerhards » Thu Feb 19, 2009 9:21 pm

oh... are they really at version 1? That's ugly... I think on the rsyslog mailing list is someone from Canonical. Michael, should I ask if there is someone with them interested in providing a more up-to-date package. As it looks, they need to pull your's and are done?

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

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby p.dunbar » Thu Feb 19, 2009 9:55 pm

this is what is in Hardy.
Code: Select all
Version: 1.19.12-1
Priority: extra
Section: universe/admin
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Uncompressed Size: 688k
Depends: libc6 (>= 2.6.1-1), zlib1g (>= 1:1.2.3.3.dfsg-1), lsb-base (>= 3.0-6)
Recommends: logrotate
Suggests: rsyslog-mysql
Conflicts: linux-kernel-log-daemon, system-log-daemon
Replaces: linux-kernel-log-daemon, system-log-daemon
Provides: linux-kernel-log-daemon, system-log-daemon
Description: enhanced multi-threaded syslogd


seriously old. On an LTS Server released last year I was hoping it'd be newer. Didn't realize till I commited to using it.

rgerhards wrote: As it looks, they need to pull your's and are done?
Rainer

And make that change to the init script to remove status or they will have to upgrade lsb-base as well.
p.dunbar
Avarage
 
Posts: 18
Joined: Wed Feb 11, 2009 10:32 pm

Re: install LATEST rsyslog from deb src on ubuntu... (mbiebl?)

Postby mbiebl » Fri Feb 20, 2009 1:14 pm

I think they should first sync the version 3.20.4-2 from unstable into jaunty, and then request a backport. I'm not so familiar with the Ubuntu procedures, but with a bit of googling I found this: https://help.ubuntu.com/community/UbuntuBackports

Rainer, if you have a Ubuntu contact person then it would be probably best to pass this information along. I myself can't make any uploads to Ubuntu.
mbiebl
Advanced
 
Posts: 39
Joined: Wed Dec 05, 2007 12:46 am

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron