-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get back to previous configuration. #464
Comments
Hi, let me see if I can help. First of all, It looks like you are facing the dreaded diamond dependency problem that is one of the reasons we created stack. I'm curious what problems you had with stack, perhaps we could diagnose that and get you going. Otherwise it's probably good idea to consider nuking your cabal package databases to fix your build problems. There are plenty of guides on the internet that can help you with that. |
Update: Distribution/Client/BuildReports/Upload.hs:17:8: Distribution/Client/Compat/Semaphore.hs:10:8: Distribution/Client/Dependency/Modular/Validate.hs:10:8: Distribution/Client/GZipUtils.hs:20:8: Distribution/Client/GZipUtils.hs:21:8: Distribution/Client/HttpUtils.hs:13:8: Distribution/Client/HttpUtils.hs:16:8: Distribution/Client/HttpUtils.hs:19:8: Distribution/Client/HttpUtils.hs:22:8: Distribution/Client/Types.hs:37:8: Distribution/Client/Upload.hs:31:8: Error during cabal-install bootstrap: Is this what you suggested I try, or did I misunderstand you. I'm inclined to reinstall GHC now. Do you know if version 7.10.1 is considered stable? The problem with stack was the old 'cabal hell' problem of dependencies which couldn't be resolved. |
This isn't really a forum for support on cabal install, but if you want to take it from the top we can try to get you running with stack. That would be:
Also, it looks like you are using a module from wai-app-static but you are trying to install wai-websockets. |
I think the message said I needed both, so I didn't try wai-app-static after wai-websockets failed. Maybe my troubles stem from installing stack from the Github repo. I am working in an Ubuntu-14.04 box. Where can I find an Ubuntu/Debian binary, or do I need to compile it? |
@dschalk Ubuntu install instructions can be found here: https://github.com/commercialhaskell/stack/wiki/Downloads#ubuntu |
Thanks. |
Back in cabal hell again. I'm using Stackage. I installed GHC-7.10.1 and reinstalled Cabal and cabal-install. Here's what I get: |
@dschalk: You keep saying that you are using stack, but I haven't been able to verify you running a single stack command. As I said, this is not a cabal-install support forum. Could you give us the output of |
Must I use GHC-7.8.4 in my project. I have 7.10.1. Anyway, here is what I have so far:
Downloaded lts-2.16 build plan. Fm.hs:6:8: Main.hs:9:8: Main.hs:12:18: Main.hs:15:18: Main.hs:16:18: |
sudo stack setup still gave the 443 error message but after I entered sudo -i and returned to the project directory, stack setup worked. |
OOps. In the end I got: |
It looks like you are on GHC 7.10 already, so try |
d@D: The Stackage version is 0.9.5.3. I suspect that stack somehow imposed the global constraint requiring ==0.9.3.1. What do you think? |
@dschalk, we aren't able to help in debugging issues with cabal, but you ought to be able to see success with:
|
@dschalk You shouldn't be using (Makes me wonder if stack ought to error out if it detects it's running as root...) |
I'm at an airport on my phone, so not the most amenable place for good comments. That said, I'm seeing three different things combined in this issue:
In general, when things get conflated, it's harder for people to assist. I'd recommend opening new, targeted issues as necessary and closing this one. @radix The sudo thing may be worth pursuing, can you similarly open that up in a separate issue for discussion? |
I tried stack and couldn't make it work so I removed the .stack directory and everything stack in my application directory. I even brought back my latest Github update to make sure. When I enter 'cabal configure, I get this:
d@D:
/websockets-react$ cabal configure/websockets-react$Resolving dependencies...
Configuring websockets-react-0.1.0.0...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package aeson-0.8.0.2 requires mtl-2.1.3.1
package websockets-0.9.5.0 requires mtl-2.2.1
package resourcet-1.1.5 requires mtl-2.2.1
package exceptions-0.8.0.2 requires mtl-2.2.1
package conduit-1.2.4.2 requires mtl-2.2.1
package conduit-extra-1.1.9 requires primitive-0.5.4.0
package vector-0.10.12.3 requires primitive-0.6
package primitive-0.6 requires transformers-0.3.0.0
package mtl-2.1.3.1 requires transformers-0.3.0.0
package wai-websockets-3.0.0.5 requires transformers-0.4.2.0
package wai-extra-3.0.7.1 requires transformers-0.4.2.0
package wai-app-static-3.1.0 requires transformers-0.4.2.0
package transformers-compat-0.4.0.4 requires transformers-0.4.2.0
package transformers-base-0.4.4 requires transformers-0.4.2.0
package streaming-commons-0.1.12.1 requires transformers-0.4.2.0
package resourcet-1.1.5 requires transformers-0.4.2.0
package optparse-applicative-0.11.0.2 requires transformers-0.4.2.0
package mtl-2.2.1 requires transformers-0.4.2.0
package monad-control-1.0.0.4 requires transformers-0.4.2.0
package mmorph-1.0.4 requires transformers-0.4.2.0
package exceptions-0.8.0.2 requires transformers-0.4.2.0
package cryptohash-conduit-0.1.1 requires transformers-0.4.2.0
package conduit-extra-1.1.9 requires transformers-0.4.2.0
package conduit-1.2.4.2 requires transformers-0.4.2.0
package websockets-react-0.1.0.0 requires transformers-0.4.3.0
d@D:
When I enter 'runghc Main', I get this:
Main.hs:15:18:
Could not find module ‘Network.Wai.Handler.WebSockets’
Use -v to see a list of the files searched for.
Main.hs:16:18:
Could not find module ‘Network.Wai.Application.Static’
Use -v to see a list of the files searched for.
d@D:
/websockets-react$/websockets-react$When I then enter 'cabal install wai-websockets', I get:
Resolving dependencies...
All the requested packages are already installed:
wai-websockets-3.0.0.5
Use --reinstall if you want to reinstall anyway.
d@D:
Reinstalling doesn't help.
The command 'cabal build' causes my processor to go bananas until I can't stand it and enter 'CTR-c'.
My next stop will probably be to remove Cabal and reinstalling it, but don't see why that would work. By the way, I have been using Hackage. I ran cabal update during all of this and it seemed to install things rather than report that all is up to date.
The text was updated successfully, but these errors were encountered: