Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Elm 0.14 fails to build from source on OS X 10.9 #30
Using the command from the install instructions, on OS X 10.9 with Haskell Platform 2014.2.0.0 installed, cabal fails to find a valid build plan:
$ cabal install -j elm-package-0.2 elm-make-0.1 elm-repl-0.4 elm-reactor-0.2 regex-base-0.93.2 (reinstall) changes: mtl-22.214.171.124 -> 2.2.1 regex-posix-0.95.2 (reinstall) ... cabal: The following packages are likely to be broken by the reinstalls: regex-compat-0.95.1 Use --force-reinstalls if you want to install anyway.
Adding a constraint on mtl fixes this (random googling pointed me to @feuerbach suggesting a similar issue in another project could indicate an upstream issue with cabal, but I'm out of my depth regarding the probability of that being the case here). My cabal-version is current:
$ cabal --version cabal-install version 126.96.36.199 using version 188.8.131.52 of the Cabal library
My relevant global packages, all from Haskell-Platform:
$ ghc-pkg --global list | grep regex regex-base-0.93.2 regex-compat-0.95.1 regex-posix-0.95.2
Here's my added constraint:
This succeeds with a build plan, but fails later (I am guessing it's due to elm-make not being in the path (yet) but that's a very wild guess)
I think I can tackle that one separately though. Please pardon me if this is the inappropriate repository for reporting the above issue, or if it's actually an issue that's local to my machine (I'm still very new to Elm). Thanks!
And indeed, including
cabal install -j elm-compiler-0.14 elm-package-0.2 elm-make-0.1 elm-repl-0.4 elm-reactor-0.2
so hopefully appending it to the install directions is all that needs to be done.
I'm using them exclusively, in fact! Sandboxing and Stackage (+ docker for deploying to linux) has thankfully purged cabal-hell from my life. I only have one user package:
$ ghc-pkg --user list ~/.ghc/x86_64-darwin-7.8.3/package.conf.d Cabal-184.108.40.206 $
I am experiencing this very same problem when I try to build Elm from source on Linux using BuildFromSource.hs from this repo's readme. Here's the full output:
Some env info: GHC 7.6.3, cabal 220.127.116.11.
Any help would be much appreciated.
Hi @herberthamaral, what did you do? I have at least GHC 7.10 and cabal 1.22.9 but still getting the same error as you :(
What the heck?
I can see that i has to do with my .bashrc
@jvoigtlaender thx :)