Ok, so now HOC builds and installs correctly, although oddly Cabal has
suddenly started installing packages for all users, even if I specify
--user on the config line. So I installed HOC:

~/dev/haskell/hoc> sudo runhaskell Setup install
Installing: /usr/local/lib/HOC-1.0/ghc-6.8.3
Installing: /usr/local/bin
Registering HOC-1.0...
Reading package info from "dist/installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.

However:

~/dev/haskell/hoc> cd ../yi/
~/dev/haskell/hoc> runhaskell Setup configure --user -fcocoa
Setup: yi.cabal:245: Parse of field 'build-depends' failed.

~/dev/haskell/yi> cat yi.cabal | grep build-depends
        build-depends: Cabal >= 1.6 && < 1.7
        build-depends: Diff >=0.1 && <0.2
        build-depends: array,  base,  containers,  directory, mtl,
process, old-locale, old-time, random
        build-depends: binary >=0.4.2 && <0.5
        build-depends: bytestring >=0.9.1 && <0.9.2
        -- build-depends: derive >=0.1 && <0.2
        build-depends: filepath>=1.1 && <1.2
        build-depends: fingertree >= 0 && <0.1
        build-depends: ghc-paths ==0.1.*
        build-depends: parsec >= 3 && <= 3.0.2
        build-depends: unix-compat >=0.1 && <0.2
        build-depends: pureMD5 >= 0.2.3
        build-depends: regex-base ==0.93.*
        build-depends: regex-tdfa ==0.95.*
        build-depends: rosezipper >= 0.1 && < 0.2
        build-depends: utf8-string >= 0.3.1
           build-depends: unix
           build-depends: vty>=3.1.0 && < 4
          build-depends: gtk>=0.9.13
          build-depends: gtk>=0.9.13
          build-depends: HOC, HOC-AppKit, HOC-Foundation
          build-depends: ghc==6.8.3
          build-depends: haskell98
            build-depends:  QuickCheck < 2

I have no idea why the ghc-paths line might be invalid. If I comment
that out, it then compains about regex-base - it doesn't seem to like
the .* format, perhaps?

So I thought I would try to install from Cabal:

~/dev/haskell/yi> cabal install yi -fcocoa
Resolving dependencies...
'Cabal-1.4.0.2' is cached.
[1 of 1] Compiling Main             (
/var/folders/-n/-nedVw4+EUmPOP6ady+Fd++++TI/-Tmp-/TMPCabal-1.4.0.2/Cabal-1.4.0.2/Setup.hs,
/var/folders/-n/-nedVw4+EUmPOP6ady+Fd++++TI/-Tmp-/TMPCabal-1.4.0.2/Cabal-1.4.0.2/dist/setup/Main.o
)
Linking 
/var/folders/-n/-nedVw4+EUmPOP6ady+Fd++++TI/-Tmp-/TMPCabal-1.4.0.2/Cabal-1.4.0.2/dist/setup/setup
...
setup: Unrecognised flags:
 --constraint=array ==0.1.0.0
 --constraint=base ==3.0.2.0
 --constraint=containers ==0.1.0.2
 --constraint=directory ==1.0.0.1
 --constraint=filepath ==1.1.0.0
 --constraint=old-time ==1.0.0.0
 --constraint=pretty ==1.0.0.0
 --constraint=process ==1.0.0.1
cabal: Error: some packages failed to install:
Cabal-1.4.0.2 failed during the configure step. The exception was:
exit: ExitFailure 1

Is yi normally this difficult to install? Is my cabal install borked?

Thanks again for any help,
Colin

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to