The RPM Package

In this section, we peel the daemon out of its package, and see that we can actually make it start on an Ubuntu system.

  1. If you have an account on the RES web server, you can download res-am-6.5-0.89780.tgz. Unpack it:

    apprentice@testbox:/tmp/res$ tar zxvf ../res-am-6.5-0.89780.tgz
    Suse/Release10/x86_64/res-am-agent-6.5-0.89780.x86_64.rpm
    Suse/Release10/i586/res-am-agent-6.5-0.89780.i586.rpm
    RedHat/Release5/x86_64/res-am-agent-6.5-0.89780.x86_64.rpm
    RedHat/Release5/i386/res-am-agent-6.5-0.89780.i386.rpm
    RedHat/Release4/x86_64/res-am-agent-6.5-0.89780.x86_64.rpm
    RedHat/Release4/i386/res-am-agent-6.5-0.89780.i386.rpm
    AIX/ppc/res-am-agent-6.5-0.89780.aix5.3.ppc.rpm

  2. I want this agent to run on Ubuntu Precise, and possibly on Ubuntu Lucid, both on amd64 (x86_64) architectures. So I'm going to inspect the x86_64 packages (see also ):

  3. As you can see in the previous step, only libssl.so.6 is not accounted for. But my colleague Eite Tiesinga tells me that on Red Hat systems, libssl.so.6 is part of the package openssl 0.9.8e.

    Although there are tools, like patchelf or the ELF toolchain, to rewrite ELF binaries to some extent, I see no way to make it use another soname for libssl. So I'll just fake libssl.so.6:

    apprentice@testbox:/tmp/res/RedHat/Release5/x86_64$ sudo ln -s libssl.so.0.9.8  /lib/x86_64-linux-gnu/libssl.so.6

    [Note]Note

    The people at RES are quite cooperative. They were kind enough to send me a binary compiled on Debian, so the libssl hack is not necessary any more.

  4. apprentice@testbox:/tmp/res/RedHat/Release5/x86_64$ ./usr/local/bin/resamad
    No Agent Configuration file found

    There, it started!