Paczesiowa / virthualenv

Virtual Haskell Environment builder
BSD 3-Clause "New" or "Revised" License
69 stars 7 forks source link

GHC_PACKAGE_PATH failure with Haskell platform 2012-04 #44

Open ArthurClune opened 11 years ago

ArthurClune commented 11 years ago

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=""

joelburget commented 11 years ago

Thanks for the fix, @ArthurClune, works for me.