小编Jus*_*K98的帖子

在 Mac 上安装 Haskell 时,构建失败并出现 NonZeroExit 77,ghcup --cache install” 失败

有谁知道如何修复这个错误?我目前正在尝试使用https://www.haskell.org/ghcup/中的说明在 Mac 上安装 Haskell 。

安装从以下命令行开始:

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
Run Code Online (Sandbox Code Playgroud)

但是在某个时刻我收到此错误:

Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"]
Check the logs at ~/.ghcup/logs and the build directory"/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3" for more clues.

"ghcup --cache install" failed!
Run Code Online (Sandbox Code Playgroud)

这是日志文件:ghc-configure.log:

checking for gcc... gcc
checking whether ln -s works... yes
checking for gsed... sed
checking XCode version... xcode-select: error: tool 'xcodebuild'requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for …
Run Code Online (Sandbox Code Playgroud)

haskell ghc ghci haskell-stack

5
推荐指数
1
解决办法
2668
查看次数

标签 统计

ghc ×1

ghci ×1

haskell ×1

haskell-stack ×1