在Mac上安装Haskell时,生成失败,非ZeroExit 77,ghcup--cache install;失败

在Mac上安装Haskell时,生成失败,非ZeroExit 77,ghcup--cache install;失败,haskell,ghc,haskell-stack,ghci,Haskell,Ghc,Haskell Stack,Ghci,有人知道如何修复此错误吗? 我目前正试图使用中的说明在Mac上安装Haskell 安装从以下命令行开始: curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh 但是,在某一时刻,我收到了以下错误: Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"] Check the lo

有人知道如何修复此错误吗? 我目前正试图使用中的说明在Mac上安装Haskell

安装从以下命令行开始:

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
但是,在某一时刻,我收到了以下错误:

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!
以下是日志文件: 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 gcc... gcc
checking whether the C compiler works... no
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 gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
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 gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
这是ghcup.log:

Debug:  Receiving download info from: GHCupURL
Debug:  Unable to get/parse Last-Modified header
Debug:  Requested to install GHC with Version {_vEpoch = Nothing, _vChunks = [[Digits 8],[Digits 8],[Digits 3]], _vRel = []}
Debug:  Identified Platform as: PlatformResult {_platform = Darwin, _distroVersion = Just (General (Version {_vEpoch = Nothing, _vChunks = [[Digits 10],[Digits 15]], _vRel = []}))}
Info: downloading: https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: verifying digest of: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64- apple-darwin.tar.xz
Info: Unpacking: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: Installing GHC (this may take a while)
Error: 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.

当我遇到同样的问题时,我通过在我的终端中运行
xcode select--install
来更新macOS命令行开发工具,正如中所建议的那样。

config.log中有什么内容??我在过去两天中遇到了同样的问题,希望有人能解决,这样我们就可以安装了。你能解决它吗?