[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: david larsson
Subject: Cabal ad GHC_PACKAGE_PATH
Date: Thu, 01 Jun 2017 13:43:54 +0200

Im having trouble using Cabal to install a Haskell package.

cabal install xmobar
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).

The archived answers in help-guix didn't work for me, such as "unset GHC_PACKAGE_PATH" and then installing which only led to failed builds, e.g.:

text- failed during the configure step. The exception was:
user error ('/run/current-system/profile/bin/ghc' exited with an error:
/run/current-system/profile/bin/ld: cannot find crt1.o: No such file or
/run/current-system/profile/bin/ld: cannot find crti.o: No such file or
collect2: error: ld returned 1 exit status

I also tried to specify the package-db as suggested with a path from the GHC_PACKAGE_PATH but this had the same output as if running without that flag.

Any suggestions?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]