forum/DBus on Ubuntu 12.04?git-annexhttp://git-annex.branchable.com/forum/DBus_on_Ubuntu_12.04__63__/git-annexikiwiki2013-11-27T22:47:37Zcomment 1http://git-annex.branchable.com/forum/DBus_on_Ubuntu_12.04__63__/comment_1_dc14a40b64b7eda94d1a3fd766cd39cc/joeyh.name2013-11-27T22:47:37Z2012-08-25T13:06:31Z
<p>Hmm, let's see...</p>
<p>If the gibberish error is ouyay orgotfay otay otay elltay emay utwhay ethay
roreay asway, then we can figure it out, surely..</p>
<p>If the gibberish error looks something like Ḩ̶̞̗̓ͯ̅͒ͪͫe̢ͦ̊ͭͭͤͣ̂͏̢̳̦͔̬ͅ ̣̘̹̄̕͢Ç̛͈͔̹̮̗͈͓̞ͨ͂͑ͅo̿ͥͮ̿͢͏̧̹̗̪͇̫m̷̢̞̙͑̊̔ͧ̍ͩ̇̚ę̜͑̀͝s̖̱̝̩̞̻͐͂̐́̂̇̆͂</p>
<p>.. your use of cabal<br />
has accidentually summoned Cthulu! Back slowly away from the monitor!</p>
<p>Otherwise, you might try installing the <code>libdbus-1-dev</code> package with apt,
which might make cabal install the haskell dbus bindings successfully. Or
you could just install the <code>libghc-dbus-dev</code> package, which contains the
necessary haskell library pre-built. But I don't know if it's in Ubuntu
12.04; it only seems to be available in quantal
<a href="http://packages.ubuntu.com/search?keywords=libghc-dbus-dev">http://packages.ubuntu.com/search?keywords=libghc-dbus-dev</a></p>
<p>Or you could even build it with the Makefile, rather than using cabal.
The Makefile has a <code>-DWITH_DBUS</code> setting in it that can be removed to build
the fallback mode that doesn't use dbus.</p>
comment 2http://git-annex.branchable.com/forum/DBus_on_Ubuntu_12.04__63__/comment_2_608a30e274e6a691a39f69503720e320/joeyh.name2013-11-27T22:47:37Z2012-08-25T13:11:37Z
<p>I fnordgot to mention, cabal can be configured to not build with dbus too. The relevant incantation is:</p>
<p>cabal install git-annex --flags="-Dbus"</p>
Shame on me...http://git-annex.branchable.com/forum/DBus_on_Ubuntu_12.04__63__/comment_3_791b9978b410c1aff7fd8ef05c38f5f9/Michael2013-11-27T22:47:37Z2012-08-25T15:43:19Z
<p>The build error is:</p>
<p>$ cabal install DBus
Resolving dependencies...
Configuring DBus-0.4...
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DBUS... yes
configure: creating ./config.status
config.status: creating DBus.buildinfo
Building DBus-0.4...
Preprocessing library DBus-0.4...</p>
<p>DBus/Message.hsc:1:14:
Warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead</p>
<p>DBus/Message.hsc:2:12:
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
[1 of 5] Compiling DBus.Shared ( dist/build/DBus/Shared.hs, dist/build/DBus/Shared.o )
[2 of 5] Compiling DBus ( dist/build/DBus.hs, dist/build/DBus.o )</p>
<p>DBus.hsc:26:49:
Warning: In the use of `mkTyCon'
(imported from Data.Typeable):
Deprecated: "either derive Typeable, or use mkTyCon3 instead"
[3 of 5] Compiling DBus.Internal ( dist/build/DBus/Internal.hs, dist/build/DBus/Internal.o )</p>
<p>DBus/Internal.hsc:12:27:
Module <code>Control.Exception' does not export</code>throwDyn'
cabal: Error: some packages failed to install:
DBus-0.4 failed during the building phase. The exception was:
ExitFailure 1</p>
in the language of the ancients, small details matterhttp://git-annex.branchable.com/forum/DBus_on_Ubuntu_12.04__63__/comment_4_8665c95299916138c4af375626d9ec7d/joeyh.name2013-11-27T22:47:37Z2012-08-25T15:50:47Z
It seems that to cabal, "DBus" and "dbus" are different packages, and it seems you should install the latter, which has a current version of 0.10 which works and not some old 0.4 version.