haskell - Missing dependencies for chart-cairo on linux mint 17 -


i'm struggling install gtk / gtk2hs binding on linux mint 17.

the first time encountered problem when tried glade support in haskell.

there same problems purely fun let be.

this time trying visualize graph haskell chart.

the problem occured in forth step cabal install chart-cairo

i'm using ghc version 7.6.3, cabal version 1.16.0.2, gtk2hs-buildtools version 0.12.4-2ubuntu1 (from package manager), gtk2hsc2hs version 0.13.6 (this glade needs have >=0.13.8, can't find newer version)

things i've tried far:

  1. after downloading gtk2hs-buildtools package manager updated cabal , installed tools command line

  2. added "$home/.cabal/bin" front of $path (after gtk installed correctly)

  3. cabal install chart-cairo gets me error message

    resolving dependencies...     [1 of 2] compiling setupwrapper     ( /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/setupwrapper.hs, /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/setupwrapper.o )     [2 of 2] compiling main             ( /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/setup.hs, /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/main.o )     linking /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/setup ...     [1 of 2] compiling gtk2hssetup      ( gtk2hssetup.hs, dist/setup-wrapper/gtk2hssetup.o )     [2 of 2] compiling main             ( setupmain.hs, dist/setup-wrapper/main.o )     linking dist/setup-wrapper/setup ...     configuring cairo-0.13.0.2...     building cairo-0.13.0.2...     preprocessing library cairo-0.13.0.2...     [ 1 of 18] compiling graphics.rendering.cairo.matrix ( dist/build/graphics/rendering/cairo/matrix.hs, dist/build/graphics/rendering/cairo/matrix.o )     [ 2 of 18] compiling graphics.rendering.cairo.types ( dist/build/graphics/rendering/cairo/types.hs, dist/build/graphics/rendering/cairo/types.o )     [ 3 of 18] compiling graphics.rendering.cairo.internal.utilities ( dist/build/graphics/rendering/cairo/internal/utilities.hs, dist/build/graphics/rendering/cairo/internal/utilities.o )      graphics/rendering/cairo/internal/utilities.chs:24:42:         module `data.text.foreign' not export `withcstringlen'     failed install cairo-0.13.0.2     cabal: error: packages failed install:         chart-cairo-1.3.2 depends on cairo-0.13.0.2 failed install.         cairo-0.13.0.2 failed during building phase. exception was:         exitfailure 1     
  4. pkg-config cairo --modversion tells me have version 1.13.1 (which newer 0.13.0.2?)

i tried myself, , hit snags able overcome.... perhaps having same problem.

for reason, dependencies not automatically install. easy install them hand though. try this:

cabal install alex cabal install gtk2hs-buildtools cabal install cairo cabal install chart-cairo 

in general, if see error message in cabal output following line in post

failed install cairo-0.13.0.2    

it idea try install manually. although dependencies supposed worked out, i've run many cases don't (i think might have cabal installing command line tools, have never looked fully). in particular case, did, had go chain 4 times....


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -