Skip to content

Instantly share code, notes, and snippets.

@robstewart57
Created September 23, 2015 09:12
Show Gist options
  • Save robstewart57/6d1900f2b8b8fab2813d to your computer and use it in GitHub Desktop.
Save robstewart57/6d1900f2b8b8fab2813d to your computer and use it in GitHub Desktop.
cabal-helper-wrapper: Installing a private copy of Cabal because we couldn't
find the right version in your global/user package-db, this might take a
while but will only happen once per Cabal version you're using.
If anything goes horribly wrong just delete this directory and try again:
/home/rob/.ghc-mod/cabal-helper
If you want to avoid this automatic installation altogether install
version 1.18.1.3 of Cabal manually (into your user or global package-db):
$ cabal install Cabal --constraint "Cabal == 1.18.1.3"
Installing Cabal 1.18.1.3 ...
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: Cabal (user goal)
rejecting: Cabal-1.22.4.0/installed-82f..., 1.22.4.0, 1.22.3.0, 1.22.2.0,
1.22.1.1, 1.22.1.0, 1.22.0.0, 1.20.0.3, 1.20.0.2, 1.20.0.1, 1.20.0.0,
1.18.1.6, 1.18.1.5, 1.18.1.4 (global constraint requires ==1.18.1.3)
trying: Cabal-1.18.1.3
trying: base-4.8.1.0/installed-4f7... (dependency of Cabal-1.18.1.3)
trying: array-0.5.1.0/installed-d42... (dependency of Cabal-1.18.1.3)
next goal: deepseq (dependency of Cabal-1.18.1.3)
rejecting: deepseq-1.4.1.1/installed-8fb..., 1.4.1.2, 1.4.1.1, 1.4.1.0,
1.4.0.0 (conflict: Cabal => deepseq>=1.3 && <1.4)
rejecting: deepseq-1.3.0.2 (conflict: base==4.8.1.0/installed-4f7..., deepseq
=> base>=4.3 && <4.8)
rejecting: deepseq-1.3.0.1, 1.3.0.0 (conflict:
array==0.5.1.0/installed-d42..., deepseq => array>=0.1 && <0.5)
rejecting: deepseq-1.2.0.1, 1.2.0.0, 1.1.0.2, 1.1.0.1, 1.1.0.0, 1.0.0.0
(conflict: Cabal => deepseq>=1.3 && <1.4)
Dependency tree exhaustively searched.
cabal-helper-wrapper: Installing Cabal version 1.18.1.3 failed.
You have the following choices to fix this:
- The easiest way to try and fix this is just reconfigure the project and try
again:
$ cabal clean && cabal configure
- If that fails you can try to install the version of Cabal mentioned above
into your global/user package-db somehow, you'll probably have to fix
something otherwise it wouldn't have failed above:
$ cabal install Cabal --constraint 'Cabal == 1.18.1.3'
- If you're using `Build-Type: Simple`:
- You can see if you can reinstall your cabal-install executable while
having it linked to a version of Cabal that's available in you
package-dbs or can be built automatically:
$ ghc-pkg list | grep Cabal # find an available Cabal version
Cabal-W.X.Y.Z
$ cabal install cabal-install --constraint 'Cabal == W.X.*'
Afterwards you'll have to reconfigure your project:
$ cabal clean && cabal configure
- If you're using `Build-Type: Custom`:
- Have cabal-install rebuild your Setup.hs executable with a version of the
Cabal library that you have available in your global/user package-db:
$ cabal clean && cabal configure
You might also have to install some version of the Cabal to do this:
$ cabal install Cabal
ghc-mod: GMEProcess "readProcessStderrChan" "/home/rob/.cabal/libexec/cabal-helper-wrapper" ["/home/rob/code/haskell/hdphmaxclique","/home/rob/code/haskell/hdphmaxclique/dist"] (Left 1)
cabal-helper-wrapper: Installing a private copy of Cabal because we couldn't
find the right version in your global/user package-db, this might take a
while but will only happen once per Cabal version you're using.
If anything goes horribly wrong just delete this directory and try again:
/home/rob/.ghc-mod/cabal-helper
If you want to avoid this automatic installation altogether install
version 1.18.1.3 of Cabal manually (into your user or global package-db):
$ cabal install Cabal --constraint "Cabal == 1.18.1.3"
Installing Cabal 1.18.1.3 ...
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: Cabal (user goal)
rejecting: Cabal-1.22.4.0/installed-82f..., 1.22.4.0, 1.22.3.0, 1.22.2.0,
1.22.1.1, 1.22.1.0, 1.22.0.0, 1.20.0.3, 1.20.0.2, 1.20.0.1, 1.20.0.0,
1.18.1.6, 1.18.1.5, 1.18.1.4 (global constraint requires ==1.18.1.3)
trying: Cabal-1.18.1.3
trying: base-4.8.1.0/installed-4f7... (dependency of Cabal-1.18.1.3)
trying: array-0.5.1.0/installed-d42... (dependency of Cabal-1.18.1.3)
next goal: deepseq (dependency of Cabal-1.18.1.3)
rejecting: deepseq-1.4.1.1/installed-8fb..., 1.4.1.2, 1.4.1.1, 1.4.1.0,
1.4.0.0 (conflict: Cabal => deepseq>=1.3 && <1.4)
rejecting: deepseq-1.3.0.2 (conflict: base==4.8.1.0/installed-4f7..., deepseq
=> base>=4.3 && <4.8)
rejecting: deepseq-1.3.0.1, 1.3.0.0 (conflict:
array==0.5.1.0/installed-d42..., deepseq => array>=0.1 && <0.5)
rejecting: deepseq-1.2.0.1, 1.2.0.0, 1.1.0.2, 1.1.0.1, 1.1.0.0, 1.0.0.0
(conflict: Cabal => deepseq>=1.3 && <1.4)
Dependency tree exhaustively searched.
cabal-helper-wrapper: Installing Cabal version 1.18.1.3 failed.
You have the following choices to fix this:
- The easiest way to try and fix this is just reconfigure the project and try
again:
$ cabal clean && cabal configure
- If that fails you can try to install the version of Cabal mentioned above
into your global/user package-db somehow, you'll probably have to fix
something otherwise it wouldn't have failed above:
$ cabal install Cabal --constraint 'Cabal == 1.18.1.3'
- If you're using `Build-Type: Simple`:
- You can see if you can reinstall your cabal-install executable while
having it linked to a version of Cabal that's available in you
package-dbs or can be built automatically:
$ ghc-pkg list | grep Cabal # find an available Cabal version
Cabal-W.X.Y.Z
$ cabal install cabal-install --constraint 'Cabal == W.X.*'
Afterwards you'll have to reconfigure your project:
$ cabal clean && cabal configure
- If you're using `Build-Type: Custom`:
- Have cabal-install rebuild your Setup.hs executable with a version of the
Cabal library that you have available in your global/user package-db:
$ cabal clean && cabal configure
You might also have to install some version of the Cabal to do this:
$ cabal install Cabal
ghc-mod: GMEProcess "readProcessStderrChan" "/home/rob/.cabal/libexec/cabal-helper-wrapper" ["/home/rob/code/haskell/hdphmaxclique","/home/rob/code/haskell/hdphmaxclique/dist"] (Left 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment