如何修复Haskell堆栈安装程序无法在Mac OS 10.14.6上编译健全性检查

时间:2019-12-30 08:54:32

标签: haskell haskell-stack macos-mojave

我以某种方式弄乱了MacOs 10.14.6上的haskell安装 我已经删除了〜/ .stack和〜/ .cabal文件夹,然后运行curl https://get-ghcup.haskell.org -sSf | sh 我已经使用安装了ghc brew install haskell-stack 然后使用安装堆栈 stack --version: Version 2.1.3 x86_64

  

cabal --version: cabal-install version 3.0.0.0

     

stack setup

运行The GHC located at /Users/angudavi/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 failed to compile a sanity check. Please see: http://docs.haskellstack.org/en/stable/install_and_upgrade/ for more information. Exception was: Received ExitFailure 1 when running Raw command: /Users/angudavi/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 /private/var/folders/rc/05xmxx2d1z94wfq8gjy5g8640000gn/T/stack-sanity-check-18076106c692e89a/Main.hs -no-user-package-db Run from: /private/var/folders/rc/05xmxx2d1z94wfq8gjy5g8640000gn/T/stack-sanity-check-18076106c692e89a/ Standard error: Loaded package environment from /Users/angudavi/.ghc/x86_64-darwin-8.6.5/environments/default ghc: can't find a package database at /Users/angudavi/.cabal/store/ghc-8.6.5/package.db 时,我得到了:

$ export A=1
$ eval "echo $A; echo $A; lll; echo $?"

0 个答案:

没有答案