HLearn icon indicating copy to clipboard operation
HLearn copied to clipboard

Cabal install failure

Open tcfuji opened this issue 10 years ago • 8 comments

I executed cabal undate and cabal install HLearn-algebra but it keeps trying to install ConstraintKinds-1.1.0.0 which always fails. This is strange since in the repository it asks for >=1.2.0 .

tcfuji avatar Nov 01 '14 00:11 tcfuji

I'm getting the same problem. Look forward to testing out this library!

thelastjosh avatar Nov 11 '14 18:11 thelastjosh

I'm trying to work through this:

https://izbicki.me/blog/gausian-distributions-are-monoids

and I get this:

Failed to install ConstraintKinds-1.1.0.0 cabal: Error: some packages failed to install: ConstraintKinds-1.1.0.0 failed during the building phase. The exception was: ExitFailure 1 HLearn-algebra-1.1.0.1 depends on ConstraintKinds-1.1.0.0 which failed to install.

timjstewart avatar Dec 12 '14 04:12 timjstewart

It works for me with ghc 7.6.3. Executed this in a sandbox: cabal install constraintkinds-1.1.0.0 -w path/to/ghc7.6.3 The sandbox may or may not be important..

wildman1234 avatar Mar 11 '15 14:03 wildman1234

This is also happening to me, using ghc 7.8.4 and cabal 1.22. Are there any workarounds for these issues besides using a downgraded sandboxed ghc?

damienstanton avatar Apr 13 '15 16:04 damienstanton

@damienstanton The version on hackage will only run on ghc 7.6. The master branch has a number of significant improvements, however, so that's what I'd recommend using. That should compile with your setup, but you'll first need to install the latest version of subhask (https://github.com/mikeizbicki/subhask) which is not on hackage at all.

mikeizbicki avatar Apr 13 '15 17:04 mikeizbicki

Got it. Thank you for the replies!

damienstanton avatar Apr 13 '15 17:04 damienstanton

I am attempting to work through the gausian-distributions-are-monoids post as well. I am a Haskell newbie; I am quite unfamiliar with cabal. I attempted cabal install HLearn-distributions, which failedc since it still depends on ConstraintKinds-1.1.0.0. Is there any work on updating the default repository that cabal uses so that the installation command above will succeed?

malcolmgreaves avatar Jun 01 '15 23:06 malcolmgreaves

This will happen sometime this summer, but I'm sorry that I can't be more specific than that with a date.

On Mon, Jun 1, 2015 at 4:50 PM, Malcolm Greaves [email protected] wrote:

I am attempting to work through the gausian-distributions-are-monoids post as well. I am a Haskell newbie; I am quite unfamiliar with cabal. I attempted cabal install HLearn-distributions, which failedc since it still depends on ConstraintKinds-1.1.0.0. Is there any work on updating the default repository that cabal uses so that the installation command above will work?

— Reply to this email directly or view it on GitHub https://github.com/mikeizbicki/HLearn/issues/44#issuecomment-107748675.

mikeizbicki avatar Jun 01 '15 23:06 mikeizbicki