ailed to open connection to system message bus (fixed)

Hertzel Armengol hertzel at osc.co.cr
Wed Sep 27 09:51:46 PDT 2006


Hertzel Armengol wrote:
> Maybe you be hear a lot about this error, but reading the past emails 
> from this list I was not able to solve it.
>
> here is part of my make
>
> ke[2]: Entering directory `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> make  all-recursive
> make[3]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> Making all in .
> make[4]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> make[4]: Nothing to be done for `all-am'.
> make[4]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> Making all in examples
> make[4]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> make  all-recursive
> make[5]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> Making all in .
> make[6]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> make[6]: Nothing to be done for `all-am'.
> make[6]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> Making all in statemachine
> make[6]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples/statemachine'
> make  all-am
> make[7]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples/statemachine'
> make[7]: Nothing to be done for `all-am'.
> make[7]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples/statemachine'
> make[6]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples/statemachine'
> make[5]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> make[4]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus/examples'
> make[3]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> make[2]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/dbus'
> Making all in tools
> make[2]: Entering directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/tools'
> DBUS_TOP_BUILDDIR=.. dbus-send --system --print-reply=literal 
> --dest=org.freedesktop.DBus /org/freedesktop/DBus 
> org.freedesktop.DBus.Introspectable.Introspect > 
> dbus-bus-introspect.xml.tmp && mv dbus-bus-introspect.xml.tmp 
> dbus-bus-introspect.xml
> Failed to open connection to system message bus: Failed to connect to 
> socket /usr/var/run/dbus/system_bus_socket: No such file or directory
> make[2]: *** [dbus-bus-introspect.xml] Error 1
> make[2]: Leaving directory 
> `/home/hertzel/Desktop/gtk/dbus-glib-0.71/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hertzel/Desktop/gtk/dbus-glib-0.71'
> make: *** [all] Error 2
>
>
> ----------------------------------------------
>
> My configure for dbus-glib was this: ./configure --prefix=/usr
> also After the first failed intent I applied this patch w/o luck 
> (still the same message) dbus-glib-introspect-fix-thoenig-01.bin
>
> ---------------------------------------------
>
> This was my config for the dbus: ./configure --prefix=/usr 
> --disable-xml-docs --disable-doxygen-docs
> Dbus was compiled w/p problems also my version of dbus is:
>
> # pkg-config --list-all | grep dbus
> dbus-1                           dbus - Free desktop message bus
>
> # pkg-config --modversion dbus-1
> 0.93
>
> and to get that I was forced to set :
> export PKG_CONFIG_PATH=/usr/lib/pkgconfig
>
>
> What Im doing wrong? I need dbus-glib to be able to compile xfce RC1 
> (now my desktop is broken :( )
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>   

 > This is something that still needs fixing (and it will be fixed for the
 > next release ;) ). For now you need to make sure the dbus session daemon
 > is running before building dbus-glib.
 >
 > Thanks,
 > Rob Taylor
 >
 >

Maybe this can help someone else.
I figured out what was the problem, I compiled dbus like this
./configure --prefix=/usr --disable-xml-docs --disable-doxygen-docs


and the when I started the daemon: /usr/bin/dbus-launch --exit-with-session
no pid/socket file was under /usr/var/run/dbus, it was in /var/run/dbus 
and by default the make looks at /usr/var/run/dbus so I changed my 
configure for dbus to be like this

./configure --prefix=/usr --localstatedir=/usr --disable-xml-docs 
--disable-doxygen-docs && make && make install

after that I started the daemon : /usr/bin/dbus-launch 
--exit-with-session and later
./configure --prefix=/usr --disable-xml-docs --disable-doxygen-docs && 
make && make install , under the dbus-glib folder

now I have dbus and dbus-glib running and im happy



Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hertzel.vcf
Type: text/x-vcard
Size: 122 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060927/74ca2369/hertzel.vcf


More information about the dbus mailing list