Elm 0.14 fails to build from source on OS X 10.9 #30
Comments
Definitely the right repo! Do you mind trying to build with this script and seeing what happens? It uses sandboxes, so it does not need globally force everything to be on one package or another. I also sometimes use this script when cabal stuff gets FUBAR. Are you using sandboxes in general? |
Awesome, 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.
Thanks!
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-1.20.0.2
$
|
I assume this can be closed, and thanks for updating the instructions too! |
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 1.22.0.0. Any help would be much appreciated. |
You need at least GHC 7.10 to build that version of Elm. (See also the README of this repository.) |
Oh, shame on me. Got it working now. Thanks! |
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 :(
|
@gentauro Try to compile without sudo to see whether is there any difference. |
@herberthamaral I end up with:
|
@gentauro, how certain are you that the GHC that gets run from BuildFromSource.hs is the 7.10 one? The error messages in your log look a lot like you are running only 7.8 or older there! |
Like, what happens if you do "sudo ghc --version"? |
What the heck?
I can see that i has to do with my .bashrc
@jvoigtlaender thx :) |
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:
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:
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!
The text was updated successfully, but these errors were encountered: