scion: configure fails

  • Hugo Ferreira

    Hugo Ferreira - 2009-12-07


    Apologies if this is atrivial question but I know next to nothing
    about Haskell but I am attempting to install eclipsefp to
    learn about it but have not had success.

    I downloaded the source for scion and attempted to install
    it but the configure fails with:

    :~/scion$ runhaskell Setup.hs configure

    Configuring scion-…

    Setup.hs: At least the following dependencies are missing:

    binary ==0.5.* && ==0.5.*,

    ghc-paths ==0.1.* && ==0.1.*,

    ghc-syb ==0.1.* && ==0.1.*,

    hslogger ==1.0.* && ==1.0.*,

    json ==0.4.* && ==0.4.*,

    list-tries ==0.1.* && ==0.1.*,

    multiset ==0.1.* && ==0.1.*,

    uniplate ==1.2.*

    I have installed:

    ghc 6.10-4


    And the following libraries via cabal:



    ghc-syb  0.1.2.

    hslogger 1.0.7

    json  0.4.3

    list-tries  0.1

    multiset  0.2


    It seems like only multiset is wrong because it has
    version 0.2 when 0.1 is required. Note also that
    even though I have these libraries set-up,
    scion still complaints that I have them missing.

    My question is: how can I circumvent this issue?

    Hugo F.



  • JP Moresmau

    JP Moresmau - 2009-12-08

    I think the easier is to type **cabal install** at the root of the scion source. This will pull the dependencies from cabal and install scion. Otherwise first install scion from cabal (**cabal install scion**) then run **runhaskell Setup.hs configure** on the source

  • Hugo Ferreira

    Hugo Ferreira - 2009-12-08

    Hi JP,

    Using **cabal install** worked fine. <br>

    After some reading up I also realized that because my
    ghc is a local install I should do a: <br>
    **runhaskell Setup.hs configure -user**

    But then I get::<br>
    **Configuring scion-…<br>
    Warning: This package indirectly depends on multiple versions of the same<br>
    package. This is highly likely to cause a compile failure.<br>
    package utf8-string-0.3.6 requires bytestring-<br>
    package network-bytestring- requires bytestring-<br>
    package json-0.4.3 requires bytestring-<br>
    package ghc-6.10.4 requires bytestring-<br>
    package binary- requires bytestring-<br>
    package scion- requires bytestring-<br>**

    When I check via cabal for the latest of bytestring it is
    in version

    And in fact when I execute:<br>
    **runhaskell Setup.hs build**<br>

    I get a compilation error:<br>
        Couldn't match expected type `S.ByteString'
               against inferred type `bytestring-'
        In the expression: str
        In the first argument of `L.fromChunks', namely `'
        In the first argument of `return', namely
            `(L.fromChunks )'

        Couldn't match expected type `bytestring-'
               against inferred type `S.ByteString'
        In the second argument of `send', namely `str'
        In a stmt of a 'do' expression: sent <- send sock str
        In the expression:
            do let l = S.length str
               sent <- send sock str
               if (sent /= l) then
                   do logError
                    $   (show l)
                      ++  " bytes to be sent but could only sent : " ++ (show sent)
                   go strs</code></pre>

    So I don't know if this an error in my ghc set-up, the cabal set usage or what. I have reported this here because I think it may be of interest
    to you.  

  • JP Moresmau

    JP Moresmau - 2009-12-08

    OK, I will try to update my scion install and see, maybe it's been updated recently, and I'll let you know how it goes for me. In the meantime, maybe you can hook up directly with the scion development at

  • Hugo Ferreira

    Hugo Ferreira - 2009-12-08

    Ok, I will stick to the lists
    and forums about this issue. <br>
    Hope you merge this stuff onto the main branch soon, avoids this type of cross-posting. <br>My apologies for any inconvenience.

    Thanks for the help.

  • JP Moresmau

    JP Moresmau - 2009-12-08

    Don't be sorry, I'm delighted to see people using eclipsefp.
    Er, I've updated scion from github (branch devel) and it doesn't require  bytestring- ghc-pkg list tells me I have bytestring-

  • Hugo Ferreira

    Hugo Ferreira - 2009-12-08

    Ok, I must have messed up somewhere.<br>
    I repeated the process more than once so the difference may be in my ghc install. 
    Anyway I have  scion + eclipsefp working so I can start exploring Haskell.<br>
    Thanks for the help.


Log in to post a comment.