Haskell stack 哈斯克尔·斯塔克获胜';t安装ghc
正在尝试执行堆栈设置以在Mint 18上安装堆栈ghc,-不断获取配置错误:Haskell stack 哈斯克尔·斯塔克获胜';t安装ghc,haskell-stack,Haskell Stack,正在尝试执行堆栈设置以在Mint 18上安装堆栈ghc,-不断获取配置错误: checking for path to top of build tree... /home/frank/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2 Build platform inferred as: x86_64-unknown-linux Host platform inferred as: x86_64-unknown-linux Target
checking for path to top of build tree... /home/frank/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2
Build platform inferred as: x86_64-unknown-linux
Host platform inferred as: x86_64-unknown-linux
Target platform inferred as: x86_64-unknown-linux
GHC build : x86_64-unknown-linux
GHC host : x86_64-unknown-linux
GHC target : x86_64-unknown-linux
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gsed... sed
checking for gcc... /usr/bin/gcc
checking for llc-3.7... no
checking for llc... no
checking for opt-3.7... no
checking for opt... no
checking for ld... /usr/bin/ld
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in /home/frank/.stack/programs/x86_64-linux/ghc-8.0.2.temp/ghc-8.0.2:
configure: error: C compiler cannot create executables
See `config.log' for more details
我发现这个问题是因为我的机器上没有安装C编译器。 我用命令解决了它- sudo-apt-get-install-g++