installing hoodle on x86-64 ArchLinux

302 views
Skip to first unread message

sadid sahami

unread,
Jan 5, 2015, 1:56:48 AM1/5/15
to hoo...@googlegroups.com
Hi,
I like to install hooode, but frequenlty I encounter errors during install. I "rm -f .ghc .cabal" frequently and tried to install packages outside cabal (using pacman) and the conditions keeps getting better (haskell-glib, haskell-gtk, haskell-gtk2hs, haskell-builttoos,haskell-pango,....) all installed using pacman. Now I've get stuck in network.URI problem and I can't underestand the message while network is installed already! here is my latest try:

==========================================
[sadid@ArchBox ~]$ rm -rf .ghc/ .cabal/
[sadid@ArchBox ~]$ cabal update
Config file path source is default config file.
Config file /home/sadid/.cabal/config not found.
Writing default configuration to /home/sadid/.cabal/config
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
[sadid@ArchBox ~]$ cabal install system-filepath
Resolving dependencies...
Downloading system-filepath-0.4.13.1...
Configuring system-filepath-0.4.13.1...
Building system-filepath-0.4.13.1...
Installed system-filepath-0.4.13.1
[sadid@ArchBox ~]$ cabal install cmdargs
Resolving dependencies...
Downloading cmdargs-0.10.12...
Configuring cmdargs-0.10.12...
Building cmdargs-0.10.12...
Installed cmdargs-0.10.12
[sadid@ArchBox ~]$ cabal install hoodle

Resolving dependencies...
Downloading Diff-0.3.0...
Downloading MonadRandom-0.3.0.1...
Configuring MonadRandom-0.3.0.1...
Downloading TypeCompose-0.9.10...
Downloading base64-bytestring-1.0.0.1...
Configuring Diff-0.3.0...
Building MonadRandom-0.3.0.1...
Building Diff-0.3.0...
Configuring TypeCompose-0.9.10...
Downloading blaze-builder-0.3.3.4...
Configuring base64-bytestring-1.0.0.1...
Downloading byteable-0.1.1...
Downloading cereal-0.4.1.0...
Building TypeCompose-0.9.10...
Building base64-bytestring-1.0.0.1...
Downloading double-conversion-2.0.1.0...
Downloading exceptions-0.6.1...
Downloading executable-path-0.0.3...
Downloading gd-3000.7.3...
Installed Diff-0.3.0
Configuring byteable-0.1.1...
Downloading hashable-1.2.3.1...
Configuring blaze-builder-0.3.3.4...
Installed MonadRandom-0.3.0.1
Building byteable-0.1.1...
Downloading hinotify-0.3.7...
Configuring cereal-0.4.1.0...
Installed base64-bytestring-1.0.0.1
Building blaze-builder-0.3.3.4...
Downloading io-storage-0.3...
Building cereal-0.4.1.0...
Configuring exceptions-0.6.1...
Installed byteable-0.1.1
Downloading mmorph-1.0.4...
Building exceptions-0.6.1...
Downloading monad-loops-0.4.2.1...
Configuring executable-path-0.0.3...
Installed TypeCompose-0.9.10
Downloading network-2.6.0.2...
Building executable-path-0.0.3...
Downloading network-info-0.2.0.5...
Installed executable-path-0.0.3
Configuring gd-3000.7.3...
Downloading parallel-3.2.0.6...
Configuring hashable-1.2.3.1...
Installed exceptions-0.6.1
Building gd-3000.7.3...
Building hashable-1.2.3.1...
Configuring hinotify-0.3.7...
Installed blaze-builder-0.3.3.4
Building hinotify-0.3.7...
Downloading poppler-0.13...
Configuring io-storage-0.3...
Installed hashable-1.2.3.1
Building io-storage-0.3...
Configuring mmorph-1.0.4...
Installed hinotify-0.3.7
Building mmorph-1.0.4...
Configuring monad-loops-0.4.2.1...
Installed gd-3000.7.3
Building monad-loops-0.4.2.1...
Configuring network-2.6.0.2...
Installed io-storage-0.3
Downloading prelude-extras-0.4...
Downloading reflection-1.5.1...
Installed cereal-0.4.1.0
Configuring network-info-0.2.0.5...
Downloading safe-0.3.8...
Configuring parallel-3.2.0.6...
Installed mmorph-1.0.4
Building network-info-0.2.0.5...
Downloading split-0.2.2...
Building parallel-3.2.0.6...
Configuring poppler-0.13...
Installed monad-loops-0.4.2.1
Downloading stm-2.4.4...
Downloading strict-0.3.2...
Configuring prelude-extras-0.4...
Installed network-info-0.2.0.5
Downloading svgcairo-0.13.0.1...
Installed parallel-3.2.0.6
Building prelude-extras-0.4...
Configuring reflection-1.5.1...
Downloading syb-0.4.4...
Building reflection-1.5.1...
Downloading system-fileio-0.3.16...
Downloading tagged-0.7.3...
Building network-2.6.0.2...
Downloading transformers-compat-0.3.3.4...
Downloading transformers-free-1.0.1...
Configuring safe-0.3.8...
Installed prelude-extras-0.4
Downloading unix-compat-0.4.1.3...
Configuring split-0.2.2...
Installed reflection-1.5.1
Building safe-0.3.8...
Building split-0.2.2...
Building poppler-0.13...
Downloading xdg-basedir-0.2.2...
Downloading xml-types-0.3.4...
Downloading zlib-0.5.4.2...
Downloading cryptohash-0.11.6...
Configuring stm-2.4.4...
Installed safe-0.3.8
Configuring strict-0.3.2...
Installed split-0.2.2
Building stm-2.4.4...
Downloading blaze-markup-0.6.2.0...
Downloading nats-1...
Building strict-0.3.2...
Downloading scientific-0.3.3.3...
Downloading unordered-containers-0.2.5.1...
Downloading safecopy-0.8.3...
Installed stm-2.4.4
Downloading async-2.0.2...
Downloading transformers-base-0.4.3...
Configuring svgcairo-0.13.0.1...
Configuring syb-0.4.4...
Installed strict-0.3.2
Building syb-0.4.4...
Configuring system-fileio-0.3.16...
Installed network-2.6.0.2
Downloading network-simple-0.4.0.2...
Building system-fileio-0.3.16...
Configuring tagged-0.7.3...
Installed syb-0.4.4
Building tagged-0.7.3...
Building svgcairo-0.13.0.1...
Configuring transformers-compat-0.3.3.4...
Installed tagged-0.7.3
Downloading crypto-api-0.13.2...
Building transformers-compat-0.3.3.4...
Configuring transformers-free-1.0.1...
Installed system-fileio-0.3.16
Building transformers-free-1.0.1...
Configuring unix-compat-0.4.1.3...
Installed poppler-0.13
Building unix-compat-0.4.1.3...
Configuring double-conversion-2.0.1.0...
Installed svgcairo-0.13.0.1
Configuring xdg-basedir-0.2.2...
Installed transformers-free-1.0.1
Building double-conversion-2.0.1.0...
Building xdg-basedir-0.2.2...
Configuring xml-types-0.3.4...
Installed unix-compat-0.4.1.3
Building xml-types-0.3.4...
Configuring cryptohash-0.11.6...
Installed xdg-basedir-0.2.2
Downloading dyre-0.8.12...
Configuring zlib-0.5.4.2...
Installed transformers-compat-0.3.3.4
Downloading distributive-0.4.4...
Building cryptohash-0.11.6...
Building zlib-0.5.4.2...
Configuring blaze-markup-0.6.2.0...
Installed double-conversion-2.0.1.0
Building blaze-markup-0.6.2.0...
Configuring nats-1...
Installed zlib-0.5.4.2
Downloading streaming-commons-0.1.8...
Building nats-1...
Configuring unordered-containers-0.2.5.1...
Installed xml-types-0.3.4
Downloading libxml-sax-0.7.5...
Building unordered-containers-0.2.5.1...
Configuring scientific-0.3.3.3...
Installed nats-1
Building scientific-0.3.3.3...
Configuring safecopy-0.8.3...
Installed cryptohash-0.11.6
Downloading uuid-1.3.8...
Building safecopy-0.8.3...
Installed blaze-markup-0.6.2.0
Downloading blaze-html-0.7.0.3...
Configuring async-2.0.2...
Building async-2.0.2...
Configuring transformers-base-0.4.3...
Installed async-2.0.2
Downloading fsnotify-0.1.0.3...
Building transformers-base-0.4.3...
Configuring network-simple-0.4.0.2...
Installed scientific-0.3.3.3
Downloading attoparsec-0.12.1.2...
Building network-simple-0.4.0.2...
Configuring crypto-api-0.13.2...
Installed transformers-base-0.4.3
Downloading monad-control-1.0.0.1...
Building crypto-api-0.13.2...
Configuring dyre-0.8.12...
Installed unordered-containers-0.2.5.1
Downloading semigroups-0.16.0.1...
Building dyre-0.8.12...
Configuring distributive-0.4.4...
Installed network-simple-0.4.0.2
Configuring streaming-commons-0.1.8...
Installed safecopy-0.8.3
Building streaming-commons-0.1.8...
Configuring libxml-sax-0.7.5...
Installed dyre-0.8.12
Building libxml-sax-0.7.5...
Building distributive-0.4.4...
Configuring uuid-1.3.8...
Installed distributive-0.4.4
Building uuid-1.3.8...
Installed libxml-sax-0.7.5
Downloading dbus-0.10.9...
Configuring blaze-html-0.7.0.3...
Building blaze-html-0.7.0.3...
Configuring fsnotify-0.1.0.3...
Installed crypto-api-0.13.2
Downloading pureMD5-2.1.2.1...
Building fsnotify-0.1.0.3...
Configuring attoparsec-0.12.1.2...
Installed streaming-commons-0.1.8
Building attoparsec-0.12.1.2...
Configuring monad-control-1.0.0.1...
Installed uuid-1.3.8
Building monad-control-1.0.0.1...
Configuring semigroups-0.16.0.1...
Installed fsnotify-0.1.0.3
Building semigroups-0.16.0.1...
Installed monad-control-1.0.0.1
Configuring dbus-0.10.9...
Downloading lifted-base-0.2.3.3...
Building dbus-0.10.9...
Configuring pureMD5-2.1.2.1...
Installed semigroups-0.16.0.1
Downloading void-0.7...
Building pureMD5-2.1.2.1...
Installed pureMD5-2.1.2.1
Configuring lifted-base-0.2.3.3...
Building lifted-base-0.2.3.3...
Configuring void-0.7...
Installed blaze-html-0.7.0.3
Building void-0.7...
Installed void-0.7
Downloading contravariant-1.2.0.1...
Installed lifted-base-0.2.3.3
Downloading resourcet-1.1.3.3...
Configuring contravariant-1.2.0.1...
Configuring resourcet-1.1.3.3...
Building contravariant-1.2.0.1...
Building resourcet-1.1.3.3...
Installed dbus-0.10.9
Installed contravariant-1.2.0.1
Downloading comonad-4.2.2...
Configuring comonad-4.2.2...
Installed resourcet-1.1.3.3
Downloading conduit-1.2.3.1...
Configuring conduit-1.2.3.1...
Building conduit-1.2.3.1...
Building comonad-4.2.2...
Installed comonad-4.2.2
Downloading semigroupoids-4.2...
Configuring semigroupoids-4.2...
Building semigroupoids-4.2...
Installed conduit-1.2.3.1
Downloading attoparsec-conduit-1.1.0...
Downloading zlib-conduit-1.1.0...
Configuring zlib-conduit-1.1.0...
Configuring attoparsec-conduit-1.1.0...
Building zlib-conduit-1.1.0...
Building attoparsec-conduit-1.1.0...
Installed zlib-conduit-1.1.0
Installed attoparsec-conduit-1.1.0
Installed semigroupoids-4.2
Downloading bifunctors-4.2...
Downloading profunctors-4.3.2...
Configuring profunctors-4.3.2...
Configuring bifunctors-4.2...
Building profunctors-4.3.2...
Building bifunctors-4.2...
Installed profunctors-4.3.2
Installed bifunctors-4.2
Downloading free-4.10.0.1...
Configuring free-4.10.0.1...
Building free-4.10.0.1...
Installed free-4.10.0.1
Downloading either-4.3.2.1...
Downloading lens-4.7...
Configuring either-4.3.2.1...
Building either-4.3.2.1...
Installed attoparsec-0.12.1.2
Downloading aeson-0.8.0.2...
Downloading conduit-extra-1.1.6.2...
Configuring aeson-0.8.0.2...
Downloading configurator-0.3.0.0...
Configuring lens-4.7...
Building aeson-0.8.0.2...
Configuring configurator-0.3.0.0...
Building configurator-0.3.0.0...
Configuring conduit-extra-1.1.6.2...
Installed either-4.3.2.1
Downloading errors-1.4.7...
Building conduit-extra-1.1.6.2...
Building lens-4.7...
Configuring errors-1.4.7...
Installed configurator-0.3.0.0
Building errors-1.4.7...
Installed conduit-extra-1.1.6.2
Downloading xml-conduit-1.2.3.1...
Configuring xml-conduit-1.2.3.1...
Building xml-conduit-1.2.3.1...
Installed errors-1.4.7
Installed aeson-0.8.0.2
Downloading aeson-pretty-0.7.2...
Configuring aeson-pretty-0.7.2...
Building aeson-pretty-0.7.2...
Installed xml-conduit-1.2.3.1
Installed aeson-pretty-0.7.2
Installed lens-4.7
Downloading coroutine-object-0.3...
Downloading hoodle-types-0.3...
Configuring coroutine-object-0.3...
Downloading xournal-types-0.5.0.2...
Configuring hoodle-types-0.3...
Building coroutine-object-0.3...
Configuring xournal-types-0.5.0.2...
Building hoodle-types-0.3...
Building xournal-types-0.5.0.2...
Installed coroutine-object-0.3
Installed xournal-types-0.5.0.2
Downloading xournal-parser-0.5.0.3...
Configuring xournal-parser-0.5.0.3...
Building xournal-parser-0.5.0.3...
Installed xournal-parser-0.5.0.3
Installed hoodle-types-0.3
Downloading hoodle-builder-0.3...
Downloading hoodle-parser-0.3...
Configuring hoodle-parser-0.3...
Downloading hoodle-render-0.4...
Configuring hoodle-builder-0.3...
Building hoodle-parser-0.3...
Building hoodle-builder-0.3...
Configuring hoodle-render-0.4...
Building hoodle-render-0.4...
Installed hoodle-render-0.4
Installed hoodle-builder-0.3
Installed hoodle-parser-0.3

Downloading hoodle-core-0.14...
Configuring hoodle-core-0.14...
Building hoodle-core-0.14...
Failed to install hoodle-core-0.14
Build log ( /home/sadid/.cabal/logs/hoodle-core-0.14.log ):
[1 of 2] Compiling Config           ( /tmp/hoodle-core-0.14-22312/hoodle-core-0.14/Config.hs, /tmp/hoodle-core-0.14-22312/hoodle-core-0.14/dist/setup/Config.o )
[2 of 2] Compiling Main             ( /tmp/hoodle-core-0.14-22312/hoodle-core-0.14/dist/setup/setup.hs, /tmp/hoodle-core-0.14-22312/hoodle-core-0.14/dist/setup/Main.o )
Linking /tmp/hoodle-core-0.14-22312/hoodle-core-0.14/dist/setup/setup ...
Configuring hoodle-core-0.14...
Building hoodle-core-0.14...
Preprocessing library hoodle-core-0.14...

src/Hoodle/Util.hs:24:8:
    Could not find module ‘Network.URI’
    Perhaps you meant Network.BSD (from network-2.6.0.2)
    Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
hoodle-0.3 depends on hoodle-core-0.14 which failed to install.
hoodle-core-0.14 failed during the building phase. The exception was:
ExitFailure 1

[sadid@
ArchBox ~]$ cabal install network
Resolving dependencies...
All the requested packages are already installed:
network-2.6.0.2
Use --reinstall if you want to reinstall anyway.

[sadid@RainbowBox ~]$ cabal --version
cabal-install version 1.20.0.4
using version 1.20.0.3 of the Cabal library
[sadid@RainbowBox ~]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.4

========================================

sadid sahami

unread,
Jan 5, 2015, 2:33:55 AM1/5/15
to hoo...@googlegroups.com
I tried to use git and build in sandbox but again gtk error while I've installed it outside cabal (haskell-gtk)

.....Lots of download and install.....
Installed coroutine-object-0.3
Installed xournal-types-0.5.1
Configuring xournal-parser-0.5.1...
Installed pdf-toolbox-document-0.0.4.0
Building xournal-parser-0.5.1...
Installed xournal-parser-0.5.1
Installed hoodle-types-0.3.0
Configuring hoodle-builder-0.3.0...
Configuring hoodle-parser-0.3.0...
Building hoodle-builder-0.3.0...
Building hoodle-parser-0.3.0...
Installed hoodle-builder-0.3.0
Installed hoodle-parser-0.3.0

cabal: Error: some packages failed to install:
gtk-0.13.4 failed during the building phase. The exception was:
ExitFailure (-11)
hoodle-0.4 depends on gtk-0.13.4 which failed to install.
hoodle-core-0.15 depends on gtk-0.13.4 which failed to install.
hoodle-publish-0.2 depends on gtk-0.13.4 which failed to install.
hoodle-render-0.5 depends on gtk-0.13.4 which failed to install.
poppler-0.13 depends on gtk-0.13.4 which failed to install.

Ian-Woo Kim

unread,
Jan 6, 2015, 7:16:44 AM1/6/15
to hoodle group
Hi,

First of all, very recently, Network.URI is now splitted off from
network library to network-uri. Arch linux may have the newest version
of network library. I adjusted the dependencies in my development
version, so until I upload it, you can just add network-uri in cabal
dependency list in hoodle-core as a workaround.

gtk problem is rather unclear. That simply said that gtk (haskell
library) failed to install. You can check the log of cabal build of
gtk (which is in ~/.cabal/logs or in .cabal-sandbox/logs )
One possibility is that you may not have gtk2hs-buildtools in your PATH.

Thanks for trying!

best,
IW
> --
> You received this message because you are subscribed to the Google Groups
> "hoodle" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hoodle+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Marduk

unread,
Feb 10, 2015, 10:22:09 PM2/10/15
to hoo...@googlegroups.com
I am also in Arch and I am having the Network.URI problem. I added network-uri to the list Build-Depends and after issuing cabal build the following error occurs:


Building hoodle-core-0.14...
Preprocessing library hoodle-core-0.14...
[20 of 66] Compiling Hoodle.ModelAction.ContextMenu ( src/Hoodle/ModelAction/ContextMenu.hs, dist/build/Hoodle/ModelAction/ContextMenu.o )

src/Hoodle/ModelAction/ContextMenu.hs:79:17:
    No instance for (glib-0.13.0.7:System.Glib.UTFString.GlibString
                       string0)
      arising from a use of ‘menuItemNewWithLabel’
    The type variable ‘string0’ is ambiguous
    Note: there are several potential instances:
      instance glib-0.13.0.7:System.Glib.UTFString.GlibString
                 Data.Text.Internal.Text
        -- Defined in ‘glib-0.13.0.7:System.Glib.UTFString’
      instance glib-0.13.0.7:System.Glib.UTFString.GlibString [Char]
        -- Defined in ‘glib-0.13.0.7:System.Glib.UTFString’
    In a stmt of a 'do' block:
      mi <- menuItemNewWithLabel "Create a link to..."
    In the expression:
      do { mi <- menuItemNewWithLabel "Create a link to...";
           mi `on` menuItemActivate
           $ evhandler (UsrEv (GotContextMenuSignal CMenuCreateALink));
           return (Just mi) }
    In the expression:
      if (length . filter isLinkInRItem) sitems > 0 then
          return Nothing
      else
          do { mi <- menuItemNewWithLabel "Create a link to...";
               mi `on` menuItemActivate
               $ evhandler (UsrEv (GotContextMenuSignal CMenuCreateALink));
               return (Just mi) }

src/Hoodle/ModelAction/ContextMenu.hs:79:38:
    No instance for (Data.String.IsString string0)
      arising from the literal ‘"Create a link to..."’
    The type variable ‘string0’ is ambiguous
    Note: there are several potential instances:
      instance a ~ Data.Text.Internal.Text =>
               Data.String.IsString
                 (attoparsec-0.12.1.2:Data.Attoparsec.Text.Internal.Parser a)
        -- Defined in ‘attoparsec-0.12.1.2:Data.Attoparsec.Text.Internal’
      instance Data.String.IsString Data.Text.Internal.Text
        -- Defined in ‘Data.Text’
      instance Data.String.IsString B.ByteString
        -- Defined in ‘Data.ByteString.Internal’
      ...plus six others
    In the first argument of ‘menuItemNewWithLabel’, namely
      ‘"Create a link to..."’
    In a stmt of a 'do' block:
      mi <- menuItemNewWithLabel "Create a link to..."
    In the expression:
      do { mi <- menuItemNewWithLabel "Create a link to...";
           mi `on` menuItemActivate
           $ evhandler (UsrEv (GotContextMenuSignal CMenuCreateALink));
           return (Just mi) }


Benjamin Hackl

unread,
Feb 18, 2015, 9:35:51 AM2/18/15
to hoo...@googlegroups.com
Hi,

I have exactly the same problem as Marduk. Is there some sort of workaround?

Kind regards,
Benjamin

poembean

unread,
Feb 27, 2015, 8:42:55 PM2/27/15
to hoo...@googlegroups.com
I met the same gtk build error. The following commands worked:

% cabal update
% cabal install alex
% cabal install happy
% cabal install gtk2hs-buildtools
% export PATH=$PATH:$HOME/.cabal/bin
% cabal install hoodle
Message has been deleted
Message has been deleted

sadid sahami

unread,
Mar 3, 2015, 4:54:09 PM3/3/15
to hoo...@googlegroups.com
this time after some back-and-forth with cabal install hoodle then fail on packae x then cabal install x and then cabal hoodle....I was able to Finally install hoodle. for me apex, happy and gtk2hs-buildtools was install by pacman and I had gtk2hsC2s and other in my PATH. So awesome!

p.s. it doesn't recognize all of my wacom tablet keys (esp the eraser). But the performance is great (e.g. anotating the PDF is very good in comparison to the way xournal or xournal++ has implemented it).

sadid sahami

unread,
Mar 3, 2015, 4:57:48 PM3/3/15
to hoo...@googlegroups.com
the x and y packages which failed on the first try was blaze-html (which is on version 8.0 but in the dependency it's 7.xx) and the other package was tls.

Ian-Woo Kim

unread,
Mar 4, 2015, 7:52:22 AM3/4/15
to hoodle group

Great to hear that you got a success!
Thank you very much for trying and detail report.

Cabal dep problem is sometimes quite tricky.

IW

--
Reply all
Reply to author
Forward
0 new messages