Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

scion: configure fails

Help
2009-12-07
2012-12-06
  • Hugo Ferreira
    Hugo Ferreira
    2009-12-07

    Hello,

    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-0.1.0.2…

    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

    Cabal 1.6.0.3

    And the following libraries via cabal:

    binary 0.5.0.2

    ghc-paths 0.1.0.6

    ghc-syb  0.1.2.

    hslogger 1.0.7

    json  0.4.3

    list-tries  0.1

    multiset  0.2

    uniplate  1.2.0.3

    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?

    TIA,
    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-0.1.0.2…<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-0.9.1.4<br>
    package network-bytestring-0.1.2.1 requires bytestring-0.9.1.4<br>
    package json-0.4.3 requires bytestring-0.9.1.4<br>
    package ghc-6.10.4 requires bytestring-0.9.1.4<br>
    package binary-0.5.0.2 requires bytestring-0.9.1.4<br>
    package scion-0.1.0.2 requires bytestring-0.9.1.5<br>**

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

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

    I get a compilation error:<br>
    <pre><code>server/Scion/Server/ConnectionIO.hs:96:36:
        Couldn't match expected type `S.ByteString'
               against inferred type `bytestring-0.9.1.4:Data.ByteString.Internal.ByteString'
        In the expression: str
        In the first argument of `L.fromChunks', namely `'
        In the first argument of `return', namely
            `(L.fromChunks )'

    server/Scion/Server/ConnectionIO.hs:105:29:
        Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Internal.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)
               else
                   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 http://code.google.com/p/scion-lib/

     
  • Hugo Ferreira
    Hugo Ferreira
    2009-12-08

    Ok, I will stick to the http://code.google.com/p/scion-lib/ 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-0.9.1.5. ghc-pkg list tells me I have bytestring-0.9.1.4.

     
  • 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.