使用hal-device时的报错centos5.3

[root@T61 dbus]# hal-device
error: dbus_bus_get: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused

这是因为dbus服务没有启动,启动dbus服务/etc/init.d/messagebus

又报下面的错误

[root@T61 dbus]# hal-device
error: libhal_ctx_init: (null): (null)
hal-device.c 144 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set.

报这个错,居然是因为hal的服务haldaemon没有启动。

/etc/rc.d/init.d/haldaemon start 解决

你可能感兴趣的:(liunx,hal-device,报错centos5.3)