Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.
This repository was archived by the owner on Aug 23, 2018. It is now read-only.

Elm 0.14 fails to build from source on OS X 10.9 #30

@mmaz

Description

@mmaz

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-2.1.3.1 -> 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 1.20.0.3
using version 1.20.0.2 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:

$ cabal install -j elm-package-0.2 elm-make-0.1 elm-repl-0.4 elm-reactor-0.2 --constraint mtl==2.1.3.1

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)

Linking dist/dist-sandbox-c2357961/build/elm-reactor/elm-reactor ...
Custom build step: compiling debuggerInterface.elm
setup: elm-make: does not exist
Installed elm-package-0.2
Downloading elm-make-0.1...
Downloading elm-repl-0.4...
Configuring elm-repl-0.4...
Configuring elm-make-0.1...
Building elm-repl-0.4...
Building elm-make-0.1...
Installed elm-repl-0.4
Installed elm-make-0.1
cabal: Error: some packages failed to install:
elm-reactor-0.2 failed during the building phase. The exception was:
ExitFailure 1

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions