virthualenv
virthualenv copied to clipboard
GHC_PACKAGE_PATH failure with Haskell platform 2012-04
When using the latest Haskell platform and cabal 1.16.0.2, virthualenv fails on cabal commands e.g.
$ cabal install --only-dependencies --dry-run cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal. Use the flag --package-db to specify a package database (it can be used multiple times).
unset GHC_PACKAGE_PATH at the top of the cabal skeleton seems to fix it for me.
rode:haskell/src/virthualenv: git diff skeletons/cabal 18:08:32 diff --git a/skeletons/cabal b/skeletons/cabal index 6319ec5..a7a7b12 100755 --- a/skeletons/cabal +++ b/skeletons/cabal @@ -1,5 +1,7 @@ #!/bin/sh
+unset GHC_PACKAGE_PATH + PATH_ELEMS="$(echo ${PATH} | tr -s ':' '\n')"
ORIG_CABAL_BINARY=""
Thanks for the fix, @ArthurClune, works for me.