I tried to compile the assitant branch on Ubuntu 12.04. But i depends on the DBus libraryw hich does not compile with some glibberish errors. Is there a way to solve this?
I tried to compile the assitant branch on Ubuntu 12.04. But i depends on the DBus libraryw hich does not compile with some glibberish errors. Is there a way to solve this?
Hmm, let's see...
If the gibberish error is ouyay orgotfay otay otay elltay emay utwhay ethay roreay asway, then we can figure it out, surely..
If the gibberish error looks something like Ḩ̶̞̗̓ͯ̅͒ͪͫe̢ͦ̊ͭͭͤͣ̂͏̢̳̦͔̬ͅ ̣̘̹̄̕͢Ç̛͈͔̹̮̗͈͓̞ͨ͂͑ͅo̿ͥͮ̿͢͏̧̹̗̪͇̫m̷̢̞̙͑̊̔ͧ̍ͩ̇̚ę̜͑̀͝s̖̱̝̩̞̻͐͂̐́̂̇̆͂
.. your use of cabal
has accidentually summoned Cthulu! Back slowly away from the monitor!
Otherwise, you might try installing the
libdbus-1-dev
package with apt, which might make cabal install the haskell dbus bindings successfully. Or you could just install thelibghc-dbus-dev
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 http://packages.ubuntu.com/search?keywords=libghc-dbus-devOr you could even build it with the Makefile, rather than using cabal. The Makefile has a
-DWITH_DBUS
setting in it that can be removed to build the fallback mode that doesn't use dbus.I fnordgot to mention, cabal can be configured to not build with dbus too. The relevant incantation is:
cabal install git-annex --flags="-Dbus"
The build error is:
$ 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...
DBus/Message.hsc:1:14: Warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead
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 )
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 )
DBus/Internal.hsc:12:27: Module
Control.Exception' does not export
throwDyn' cabal: Error: some packages failed to install: DBus-0.4 failed during the building phase. The exception was: ExitFailure 1