Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell stack 哈斯克尔·斯塔克获胜';t安装ghc_Haskell Stack - Fatal编程技术网

Haskell stack 哈斯克尔·斯塔克获胜';t安装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

正在尝试执行堆栈设置以在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 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++