mikeizbicki / HLearn

Homomorphic machine learning
Other
1.62k stars 134 forks source link

Cabal install failure #44

Open tcfuji opened 9 years ago

tcfuji commented 9 years ago

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 .

thelastjosh commented 9 years ago

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

timjstewart commented 9 years ago

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.

wildman1234 commented 9 years ago

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

damienstanton commented 9 years ago

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?

mikeizbicki commented 9 years ago

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

damienstanton commented 9 years ago

Got it. Thank you for the replies!

malcolmgreaves commented 9 years ago

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?

mikeizbicki commented 9 years ago

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 notifications@github.com 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.