No "dbus" service on RHEL-5

Asked by Pete Matthews on 2010-10-04

I'm trying to install SBackup from source on RHEL-5. Red Hat's Python was only 2.4.3, and would not compile SBackup correctly (failed several places on "finally:"). So I downloaded and built Python 2.7 - got by that one.

Unfortunately, there is no "dbus" service (or script in /etc/init.d). "make install" fails with:

...
if test "" = ""; then gtk-update-icon-cache -f -t /usr/local/share/icons/hicolor; gtk-update-icon-cache -f -t /usr/local/share/icons/ubuntu-mono-light; gtk-update-icon-cache -f -t /usr/local/share/icons/ubuntu-mono-dark; fi
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
install -d /etc/dbus-1/system.d
install -m 644 data/org.sbackupteam.SimpleBackup.conf /etc/dbus-1/system.d
dbus: unrecognized service
make: *** [install-dbus] Error 1

The operative section of the Makefile appears to be:

install-dbus:
        install -d $(dbus_system_conf_dir)
        install -m 644 data/$(dbus_system_conf_file) $(dbus_system_conf_dir)
        @if test "$(DISABLE_MAKEFILE_DBUS_RELOAD)" = ""; then \
        if [ -x $(servicetool) ]; then \
        $(servicetool) dbus force-reload; \
        else if [ -r /etc/init.d/dbus ]; then \
        invoke-rc.d dbus force-reload; fi; fi; \
        fi

where "servicetool" should resolve to the location of the service command.

-----

Well, I got through that problem by changing my make install to:

make DISABLE_MAKEFILE_DBUS_RELOAD=1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 install

I then ran into a problem with sbackupconfig:

Traceback (most recent call last):
  File "/usr/local/sbin/sbackupconfig", line 45, in <module>
    from sbackup.pkginfo import Infos
  File "/usr/local/share/sbackup/sbackup/pkginfo.py", line 25, in <module>
    from sbackup import util
  File "/usr/local/share/sbackup/sbackup/util/__init__.py", line 44, in <module>
    from sbackup.util import local_file_utils
  File "/usr/local/share/sbackup/sbackup/util/local_file_utils.py", line 42, in <module>
    from sbackup.util import pathparse
  File "/usr/local/share/sbackup/sbackup/util/pathparse.py", line 36, in <module>
    from sbackup.util import system
  File "/usr/local/share/sbackup/sbackup/util/system.py", line 31, in <module>
    import glib
ImportError: No module named glib

There does not seem to be a "glib" module in Python-2.7 or sbackup.

-----

Any ideas? Or is this package so full of Ubuntu-isms that it cannot be used on Red Hat?

Question information

Language:
English Edit question
Status:
Answered
For:
sbackup Edit question
Assignee:
No assignee Edit question
Last query:
2010-10-04
Last reply:
2010-10-05
Jean-Peer Lorenz (peer.loz) said : #1

Hi Pete,

no, there is not a single Ubuntu-ism in SBackup. You need to install a recent version of package 'python-gobject'. It is a part of Glib,
the core library used to build GTK+ and GNOME. This package contains the Python bindings for GObject. Have a look at the Install file for further information about dependencies.

HTH,
Jean-Peer.

Pete Matthews (petem) said : #2

Ah, YAP. The food chain is getting a little long, to install this on Red Hat's production OS.

We have a network backup system, but the system in question is off-network. I'm going to roll my own with dump/restore, I think. I just want to plug in a USB disk (or alternations thereof) and back up the data in a sensible way. I should be able to do that with a script. If I get stuck, I may be back.

Thanks for your help - Pete

Can you help with this problem?

Provide an answer of your own, or ask Pete Matthews for more information if necessary.

To post a message you must log in.