elm / elm-lang.org

Server and client code for the Elm website.
http://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
1.99k stars 367 forks source link

cabal install not working #448

Closed aestheticsdata closed 8 years ago

aestheticsdata commented 8 years ago

cabal install --only-dependencies Resolving dependencies... cabal: Could not resolve dependencies: trying: elm-website-0.1.0.2 (user goal) trying: snap-server-0.9.5.1 (dependency of elm-website-0.1.0.2) trying: network-2.4.2.3/installed-575... (dependency of snap-server-0.9.5.1) next goal: parsec (dependency of network-2.4.2.3/installed-575...) rejecting: parsec-3.1.5/installed-04a... (conflict: parsec => mtl==2.1.3.1/installed-8bc..., elm-website => mtl>=2.2.1 && <3) rejecting: parsec-3.1.9, 3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.1, 3.0.0, 2.1.0.1, 2.1.0.0, 2.0 (conflict: network => parsec==3.1.5/installed-04a...) Dependency tree exhaustively searched.

aestheticsdata commented 8 years ago

I have the latest cabal-install

jvoigtlaender commented 8 years ago

What exactly have you done before the cabal install --only-dependencies call? Please show the full shell session. Have you done what the README tells you to do?

First get the Elm developer workflow setup by reading the build from source instructions, then running this script with runhaskell BuildFromSource.hs master.

jvoigtlaender commented 8 years ago

@aestheticsdata, can this be closed, or are you still having problems building the site locally?

HParker commented 8 years ago

@jvoigtlaender I seem to be having a related issue.

adam at Hessinator in ~/code 
$ runhaskell BuildFromSource.hs master
Cloning into 'elm-compiler'...
remote: Counting objects: 23003, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 23003 (delta 2), reused 0 (delta 0), pack-reused 22991
Receiving objects: 100% (23003/23003), 6.50 MiB | 1.31 MiB/s, done.
Resolving deltas: 100% (13835/13835), done.
Checking connectivity... done.
Cloning into 'elm-package'...
remote: Counting objects: 3391, done.
remote: Total 3391 (delta 0), reused 0 (delta 0), pack-reused 3391
Receiving objects: 100% (3391/3391), 624.19 KiB | 948.00 KiB/s, done.
Resolving deltas: 100% (2020/2020), done.
Checking connectivity... done.
Cloning into 'elm-make'...
remote: Counting objects: 1016, done.
remote: Total 1016 (delta 0), reused 0 (delta 0), pack-reused 1016
Receiving objects: 100% (1016/1016), 230.44 KiB | 0 bytes/s, done.
Resolving deltas: 100% (654/654), done.
Checking connectivity... done.
Cloning into 'elm-reactor'...
remote: Counting objects: 2989, done.
remote: Total 2989 (delta 0), reused 0 (delta 0), pack-reused 2989
Receiving objects: 100% (2989/2989), 1.75 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (1748/1748), done.
Checking connectivity... done.
Cloning into 'elm-repl'...
remote: Counting objects: 920, done.
remote: Total 920 (delta 0), reused 0 (delta 0), pack-reused 920
Receiving objects: 100% (920/920), 159.43 KiB | 0 bytes/s, done.
Resolving deltas: 100% (570/570), done.
Checking connectivity... done.
Downloading the latest package list from hackage.haskell.org
Writing a default package environment file to
/Users/adam/code/Elm-Platform/master/cabal.sandbox.config
Creating a new sandbox at /Users/adam/code/Elm-Platform/master/.cabal-sandbox
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: elm-compiler-0.16 (user goal)
next goal: elm-package (user goal)
rejecting: elm-package-0.17 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler==0.17)
rejecting: elm-package-0.5 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler>=0.15 && <0.16)
rejecting: elm-package-0.4 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler>=0.14.1 && <0.15)
rejecting: elm-package-0.2.2, 0.2.1, 0.2 (conflict: elm-compiler==0.16,
elm-package => elm-compiler>=0.14 && <0.15)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: elm-compiler-0.16 (user goal)
next goal: elm-package (user goal)
rejecting: elm-package-0.17 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler==0.17)
rejecting: elm-package-0.5 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler>=0.15 && <0.16)
rejecting: elm-package-0.4 (conflict: elm-compiler==0.16, elm-package =>
elm-compiler>=0.14.1 && <0.15)
rejecting: elm-package-0.2.2, 0.2.1, 0.2 (conflict: elm-compiler==0.16,
elm-package => elm-compiler>=0.14 && <0.15)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/adam/code/Elm-Platform/master/.cabal-sandbox
Configuring Diff-0.3.2...
Configuring HUnit-1.3.1.1...
Configuring ansi-terminal-0.6.2.3...
Configuring base64-bytestring-1.0.0.1...
Configuring bytestring-mmap-0.2.2...
Configuring bytestring-builder-0.10.6.0.0...
Configuring cmdargs-0.10.14...
Configuring cereal-0.5.1.0...
Building HUnit-1.3.1.1...
Building ansi-terminal-0.6.2.3...
Building base64-bytestring-1.0.0.1...
Building bytestring-builder-0.10.6.0.0...
Building Diff-0.3.2...
Building cereal-0.5.1.0...
Building bytestring-mmap-0.2.2...
Building cmdargs-0.10.14...
Configuring concatenative-1.0.1...
Installed bytestring-builder-0.10.6.0.0
Building concatenative-1.0.1...
Installed bytestring-mmap-0.2.2
Configuring data-default-class-0.0.1...
Installed base64-bytestring-1.0.0.1
Configuring dlist-0.7.1.2...
Building data-default-class-0.0.1...
Configuring SHA-1.6.4.2...
Installed concatenative-1.0.1
Configuring entropy-0.3.7...
Installed data-default-class-0.0.1
Building dlist-0.7.1.2...
Installed Diff-0.3.2
Configuring extensible-exceptions-0.1.1.4...
Building SHA-1.6.4.2...
Building extensible-exceptions-0.1.1.4...
Installed HUnit-1.3.1.1
Configuring monads-tf-0.1.0.2...
Configuring mtl-2.2.1...
Installed extensible-exceptions-0.1.1.4
Configuring network-2.6.2.1...
Installed dlist-0.7.1.2
Building monads-tf-0.1.0.2...
Building mtl-2.2.1...
Building entropy-0.3.7...
Installed ansi-terminal-0.6.2.3
Configuring old-locale-1.0.0.7...
Building old-locale-1.0.0.7...
Configuring prettyclass-1.0.0.0...
Installed entropy-0.3.7
Building network-2.6.2.1...
Building prettyclass-1.0.0.0...
Configuring primitive-0.6.1.0...
Installed old-locale-1.0.0.7
Configuring random-1.1...
Installed monads-tf-0.1.0.2
Building primitive-0.6.1.0...
Configuring stm-2.4.4.1...
Installed mtl-2.2.1
Building random-1.1...
Configuring syb-0.6...
Installed prettyclass-1.0.0.0
Building stm-2.4.4.1...
Building syb-0.6...
Configuring text-1.2.2.0...
Installed stm-2.4.4.1
Building text-1.2.2.0...
Configuring union-find-0.2...
Installed primitive-0.6.1.0
Building union-find-0.2...
Configuring unix-compat-0.4.1.4...
Installed syb-0.6
Building unix-compat-0.4.1.4...
Configuring wl-pprint-1.2...
Installed union-find-0.2
Configuring zlib-0.6.1.1...
Installed cereal-0.5.1.0
Installed random-1.1
Configuring ansi-wl-pprint-0.6.7.3...
Building wl-pprint-1.2...
Configuring MonadCatchIO-transformers-0.3.1.3...
Installed unix-compat-0.4.1.4
Building zlib-0.6.1.1...
Building ansi-wl-pprint-0.6.7.3...
Building MonadCatchIO-transformers-0.3.1.3...
Installed wl-pprint-1.2
Configuring regex-base-0.93.2...
Configuring tagshare-0.0...
Installed MonadCatchIO-transformers-0.3.1.3
Building regex-base-0.93.2...
Configuring async-2.1.0...
Installed ansi-wl-pprint-0.6.7.3
Building tagshare-0.0...
Building async-2.1.0...
Configuring vector-0.11.0.0...
Installed tagshare-0.0
Configuring edit-distance-0.2.2.1...
Installed network-2.6.2.1
Building vector-0.11.0.0...
Building edit-distance-0.2.2.1...
Configuring tf-random-0.5...
Installed regex-base-0.93.2
Configuring regex-posix-0.95.2...
Installed async-2.1.0
Building tf-random-0.5...
Building regex-posix-0.95.2...
Installed cmdargs-0.10.14
Installed tf-random-0.5
Configuring QuickCheck-2.8.2...
Installed zlib-0.6.1.1
Configuring zlib-bindings-0.1.1.5...
Building QuickCheck-2.8.2...
Building zlib-bindings-0.1.1.5...
Installed edit-distance-0.2.2.1
Installed zlib-bindings-0.1.1.5
Installed regex-posix-0.95.2
Installed QuickCheck-2.8.2
Configuring testing-feat-0.4.0.2...
Building testing-feat-0.4.0.2...
Installed testing-feat-0.4.0.2
Installed text-1.2.2.0
Configuring blaze-builder-0.4.0.1...
Configuring hfsevents-0.1.6...
Configuring hashable-1.2.4.0...
Configuring parsec-3.1.9...
Configuring enumerator-0.4.20...
Building blaze-builder-0.4.0.1...
Building hashable-1.2.4.0...
Building enumerator-0.4.20...
Building parsec-3.1.9...
Building hfsevents-0.1.6...
Installed hashable-1.2.4.0
Configuring case-insensitive-1.2.0.5...
Configuring unordered-containers-0.2.7.0...
Installed hfsevents-0.1.6
Configuring fsnotify-0.2.1...
Building case-insensitive-1.2.0.5...
Building unordered-containers-0.2.7.0...
Building fsnotify-0.2.1...
Installed blaze-builder-0.4.0.1
Configuring blaze-markup-0.7.0.3...
Building blaze-markup-0.7.0.3...
Installed case-insensitive-1.2.0.5
Configuring streaming-commons-0.1.15.2...
Building streaming-commons-0.1.15.2...
Installed fsnotify-0.2.1
Installed blaze-markup-0.7.0.3
Configuring blaze-html-0.8.1.1...
Installed parsec-3.1.9
Configuring indents-0.3.3...
Configuring language-glsl-0.2.0...
Building blaze-html-0.8.1.1...
Building language-glsl-0.2.0...
Building indents-0.3.3...
Installed enumerator-0.4.20
Configuring zlib-enum-0.2.3.1...
Installed SHA-1.6.4.2
Building zlib-enum-0.2.3.1...
Installed streaming-commons-0.1.15.2
Configuring blaze-builder-enumerator-0.2.1.0...
Installed indents-0.3.3
Building blaze-builder-enumerator-0.2.1.0...
Installed zlib-enum-0.2.3.1
Installed blaze-builder-enumerator-0.2.1.0
Installed vector-0.11.0.0
Configuring scientific-0.3.4.6...
Installed unordered-containers-0.2.7.0
Configuring uniplate-1.6.12...
Building scientific-0.3.4.6...
Building uniplate-1.6.12...
Installed scientific-0.3.4.6
Configuring attoparsec-0.13.0.1...
Building attoparsec-0.13.0.1...
Installed uniplate-1.6.12
Configuring language-ecmascript-0.17.1.0...
Installed language-glsl-0.2.0
Building language-ecmascript-0.17.1.0...
Installed blaze-html-0.8.1.1
Installed attoparsec-0.13.0.1
Configuring attoparsec-enumerator-0.3.4...
Configuring websockets-0.9.6.1...
Configuring aeson-0.8.1.1...
Building attoparsec-enumerator-0.3.4...
Building websockets-0.9.6.1...
Building aeson-0.8.1.1...
Installed attoparsec-enumerator-0.3.4
Configuring snap-core-0.9.8.0...
Building snap-core-0.9.8.0...
Installed websockets-0.9.6.1
Installed language-ecmascript-0.17.1.0
Installed snap-core-0.9.8.0
Configuring snap-server-0.9.5.1...
Building snap-server-0.9.5.1...
Installed aeson-0.8.1.1
Configuring aeson-pretty-0.7.2...
Building aeson-pretty-0.7.2...
Installed aeson-pretty-0.7.2
Configuring elm-compiler-0.16...
Building elm-compiler-0.16...
Installed snap-server-0.9.5.1
Configuring websockets-snap-0.9.2.0...
Building websockets-snap-0.9.2.0...
Installed websockets-snap-0.9.2.0
Installed elm-compiler-0.16
Configuring elm-reactor-0.16...
Building elm-reactor-0.16...
Installed elm-reactor-0.16

adam at Hessinator in ~/code 
$ cd Elm-Platform/master 

adam at Hessinator in ~/code/Elm-Platform/master 
$ ls
cabal.sandbox.config elm-make             elm-reactor
elm-compiler         elm-package          elm-repl

adam at Hessinator in ~/code/Elm-Platform/master 
$ git clone https://github.com/elm-lang/elm-lang.org.git
Cloning into 'elm-lang.org'...
remote: Counting objects: 14620, done.
remote: Total 14620 (delta 0), reused 0 (delta 0), pack-reused 14619
Receiving objects: 100% (14620/14620), 15.99 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (9268/9268), done.
Checking connectivity... done.

adam at Hessinator in ~/code/Elm-Platform/master 
$ cd elm-lang.org 

adam at Hessinator in ~/code/Elm-Platform/master/elm-lang.org (master) 
$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

adam at Hessinator in ~/code/Elm-Platform/master/elm-lang.org (master) 
$ cabal sandbox init --sandbox ../.cabal-sandbox
Writing a default package environment file to
/Users/adam/code/Elm-Platform/master/elm-lang.org/cabal.sandbox.config
Using an existing sandbox located at
/Users/adam/code/Elm-Platform/master/.cabal-sandbox

adam at Hessinator in ~/code/Elm-Platform/master/elm-lang.org (master) 
$ cabal install --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: elm-compiler-0.16/installed-c2d... (user goal)
trying: elm-website-0.1.0.2 (user goal)
next goal: elm-package (dependency of elm-website-0.1.0.2)
rejecting: elm-package-0.17 (conflict: elm-compiler==0.16/installed-c2d...,
elm-package => elm-compiler==0.17)
rejecting: elm-package-0.5 (conflict: elm-compiler==0.16/installed-c2d...,
elm-package => elm-compiler>=0.15 && <0.16)
rejecting: elm-package-0.4 (conflict: elm-compiler==0.16/installed-c2d...,
elm-package => elm-compiler>=0.14.1 && <0.15)
rejecting: elm-package-0.2.2, 0.2.1, 0.2 (conflict:
elm-compiler==0.16/installed-c2d..., elm-package => elm-compiler>=0.14 &&
<0.15)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

Trying to run the next step returns this:

$ cabal configure
Resolving dependencies...
Configuring elm-website-0.1.0.2...
cabal: At least the following dependencies are missing:
elm-package -any, utf8-string -any

cabal:

$ cabal --version
cabal-install version 1.22.6.0
using version 1.22.2.0 of the Cabal library 

not sure if it is relavent, but elm-make:

$ elm-make --version
elm-make 0.16 (Elm Platform 0.16.0)
jvoigtlaender commented 8 years ago

@HParker, you are doing runhaskell BuildFromSource.hs master, on which https://github.com/elm-lang/elm-platform#actually-build-elm-things rightfully says:

Be aware, this is where active development happens, so not everything will be working at all times!

That is exactly what is happening to you: Right now the master branches of the different repositories are not in a state such that they can all be built together. There is no remedy. Use runhaskell BuildFromSource.hs 0.16 or wait until the master branches are in synch again.

HParker commented 8 years ago

Sounds good! thanks @jvoigtlaender

jvoigtlaender commented 8 years ago

Just to clarify: If all you are trying to do is play with the Elm website source, doing runhaskell BuildFromSource.hs 0.16 should be perfectly fine for you. You don't need anything in master on top of 0.16 for elm-compiler etc. Of course, you can still use master from the website repository here.

HParker commented 8 years ago

I was hoping to contribute back as well. Will I need to wait for master to be in synch again first? Is there anything I can do to help with this?

jvoigtlaender commented 8 years ago

Contributing to the https://github.com/elm-lang/elm-lang.org repository does not require you to use anything newer than 0.16 of https://github.com/elm-lang/elm-compiler etc.

HParker commented 8 years ago

Got it. Thanks again.

xarvh commented 8 years ago

Having the same problem as the OP (on Ubuntu 15.04):

nw@glue ~$ git clone https://github.com/elm-lang/elm-lang.org.git
Cloning into 'elm-lang.org'...
remote: Counting objects: 14620, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 14620 (delta 1), reused 1 (delta 1), pack-reused 14617
Receiving objects: 100% (14620/14620), 16.00 MiB | 223.00 KiB/s, done.
Resolving deltas: 100% (9265/9265), done.
Checking connectivity... done.
nw@glue ~$ cd elm-lang.org
nw@glue ~/elm-lang.org master$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
nw@glue ~/elm-lang.org master$ cabal sandbox init --sandbox ../.cabal-sandbox
Writing a default package environment file to
/home/nw/elm-lang.org/cabal.sandbox.config
Using an existing sandbox located at /home/nw/.cabal-sandbox
nw@glue ~/elm-lang.org master$ cabal install --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: elm-website-0.1.0.2 (user goal)
trying: snap-server-0.9.5.1 (dependency of elm-website-0.1.0.2)
trying: MonadCatchIO-transformers-0.3.1.3 (dependency of snap-server-0.9.5.1)
trying: transformers-0.3.0.0/installed-ff2... (dependency of
MonadCatchIO-transformers-0.3.1.3)
next goal: mtl (dependency of elm-website-0.1.0.2)
rejecting: mtl-2.2.1 (conflict: transformers==0.3.0.0/installed-ff2..., mtl =>
transformers>=0.4 && <0.6)
rejecting: mtl-2.2.0.1, 2.2, 2.1.3.1, 2.1.2, 2.1.1, 2.1, 2.0.1.1, 2.0.1.0,
2.0.0.0, 1.1.1.1, 1.1.1.0, 1.1.0.2, 1.1.0.1, 1.1.0.0, 1.0 (conflict:
elm-website => mtl>=2.2.1 && <3)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
xarvh commented 8 years ago

Noticed the sandbox directory, so removed it, ran git clean -fdx and cabal clean and retried, but same issue:

nw@glue ~/elm-lang.org master$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
nw@glue ~/elm-lang.org master$ cabal sandbox init --sandbox ../.cabal-sandbox
Writing a default package environment file to
/home/nw/elm-lang.org/cabal.sandbox.config
Creating a new sandbox at /home/nw/.cabal-sandbox
nw@glue ~/elm-lang.org master$ cabal install --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: elm-website-0.1.0.2 (user goal)
trying: snap-server-0.9.5.1 (dependency of elm-website-0.1.0.2)
trying: MonadCatchIO-transformers-0.3.1.3 (dependency of snap-server-0.9.5.1)
trying: transformers-0.3.0.0/installed-ff2... (dependency of
MonadCatchIO-transformers-0.3.1.3)
next goal: mtl (dependency of elm-website-0.1.0.2)
rejecting: mtl-2.2.1 (conflict: transformers==0.3.0.0/installed-ff2..., mtl =>
transformers>=0.4 && <0.6)
rejecting: mtl-2.2.0.1, 2.2, 2.1.3.1, 2.1.2, 2.1.1, 2.1, 2.0.1.1, 2.0.1.0,
2.0.0.0, 1.1.1.1, 1.1.1.0, 1.1.0.2, 1.1.0.1, 1.1.0.0, 1.0 (conflict:
elm-website => mtl>=2.2.1 && <3)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
nw@glue ~/elm-lang.org master$ 
jvoigtlaender commented 8 years ago

@xarvh, I guess you shouldn't be surprised that you get the same problem as the OP if you make the same mistake as the OP. The mistake is: ignoring what the README of this repository says.

It says:

First get the Elm developer workflow setup ...

Then in the Elm-Platform/master/ directory, run these commands:

Your log doesn't look like you have done that. Have you?

Additional notice, also present in the above discussion already: For now, you should replace master by 0.16 in runhaskell BuildFromSource.hs master and Elm-Platform/master/.

xarvh commented 8 years ago

Oww, sorry. =( Will follow through as soon as I have the time to upgrade ghc.

jvoigtlaender commented 8 years ago

@aestheticsdata, please close.

evancz commented 8 years ago

Cannot debug here. Get help in some other forum.