View Full Version : rsyslog, compile from source

4th October 2009, 11:40 AM
I run FC10.
I needed rsyslog (which is included since FC8 ) to be compiled with a feature (mail output module) that was not in the system version.

I got the rsyslog source (same release as the system version 3.22.1) , did configure, make, make install and ended up with a rsyslog that was able to do what I wanted. Great success! I am happy.

Now I just wonder how to do it right.. The original rsyslog binary is located in /sbin. The new one I compiled is located in /usr/local/sbin.

Library files from original rsyslog are located in /usr/lib/rsyslog. The library files from the new package are located in /usr/local/lib/rsyslog.

So - they are both there. I guess I'm lucky it works, path's must point in the right direction..

What is the right way to do an installation from source "over" a system version of the same package? Should I've removed the system version first or maybe somehow edited the installation paths, so the system version was overwritten?!?

Any help will be greatly appreciated.



4th October 2009, 07:56 PM
Short answer:
]$ ./configure --prefix=/usr

should put stuff into /usr/... instead of default /usr/local/... . You can also execute:
]$ ./configure --help

for a long list of options.

However, to do this "right", I'd suggest that you obtain the SRPM (source RPM, *.src.rpm) to match the "stock" Fedora version, and then edit the spec file to include the desired feature, and re-build the RPM (you will of course need the usual Development tools and such). Then simply replace the "stock" RPM with your customized version.