WebFaction
Community site: login faq

Hi,

I ultimately wanted to install Gitit: http://gitit.net/Installing I noticed that Haskell platform is not installed on the server, so I tried selectively installing GHC and cabal-install. I followed the below steps for GHC 6.10: http://community.webfaction.com/questions/5084/building-ghc-from-source and steps described in link below for cabal-install: http://community.webfaction.com/questions/5098/installing-yesod-on-a-shared-account

However the installation fails because of failed dependency mtl: Configuring cabal-install-0.14.0... Setup: At least the following dependencies are missing: mtl >=2.0 && <3

Can someone please help me proceed?

asked 06 Aug '12, 16:43

mmmec
11
accept rate: 0%


I progressed a little by installing mtl and transformers manually from source. However In the end I get following error when installing cabal-install:

Distribution/Client/Dependency/Modular/Assignment.hs:47:19:
    Overlapping instances for Monad
                                (Either (ConflictSet QPN, [Dep QPN]))
      arising from a use of `foldM'
                   at Distribution/Client/Dependency/Modular/Assignment.hs:(47,19)-(52,24)
    Matching instances:
      instance Monad (Either e)
        -- Defined in transformers-0.3.0.0:Control.Monad.Trans.Error
      instance (mtl-1.1.0.2:Control.Monad.Error.Class.Error e) =>
               Monad (Either e)
        -- Defined in mtl-1.1.0.2:Control.Monad.Error
    In the expression:
        foldM
          (\ a (Dep qpn ci)
               -> let ci' = findWithDefault (Constrained []) qpn a
                  in
                    case (\ x -> M.insert qpn x a) <$> merge ci' ci of {
                      Left (c, (d, d'))
                        -> Left (c, Prelude.map (Dep qpn) (simplify (P qpn) d d'))
                      Right x -> Right x })
          pa
          qa
    In the definition of `extend':
        extend var pa qa
                 = foldM
                     (\ a (Dep qpn ci)
                          -> let ci' = ...
                             in
                               case (\ x -> M.insert qpn x a) <$> merge ci' ci of {
                                 Left (c, (d, d')) -> Left ...
                                 Right x -> Right x })
                     pa
                     qa
                 where
                     simplify v (Fixed _ (Goal var' _)) c
                                | v == var && var' == var = [c]
                     simplify v c (Fixed _ (Goal var' _))
                                | v == var && var' == var = [c]
                     simplify _ c d = [c, ....]

Error during cabal-install bootstrap:
Building the cabal-install package failed
permanent link

answered 06 Aug '12, 16:57

mmmec
11
accept rate: 0%

You would have to submit the error to the developers of the app as it appears to be a syntax error.

Syntax errors of this sort are typically related to version conflicts, so verify the versions of all the packages you are installing are supported by each-other by checking their documentation or contacting their developers.

permanent link

answered 06 Aug '12, 19:14

johns
5.4k412
accept rate: 23%

Hi Johns,

Thank you for your reply. I am guessing one reason for this error could be the source is an old version. I do want to use the new version but that would become incompatible with GHC version I installed. This becomes a chicken-egg problem.

I finally got around the problem by manually and painstakingly installing each of the dependency libraries in my home directory. I downloaded the i386 binaries from the debian repository which closely matched the version of GHC I have.

I know it is a messy solution, but worked for me. I could finally proceed. I still hope someone provides a better solution for the others to use. .

thanks again!

(06 Aug '12, 22:11) mmmec

That is how it goes sometimes with older software. Your solution works, beware of security patches which might need to be applied and you should be OK.

(06 Aug '12, 22:20) johns
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 06 Aug '12, 16:43

question was seen: 2,167 times

last updated: 06 Aug '12, 22:20

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM