2017-08-23 49 views
-1

试图做堆栈设置对薄荷18安装堆栈GHC, - 不断收到配置错误:哈斯克尔堆栈不会安装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 

回答

0

我发现这个问题,是因为我没有一个C编译器安装在我的机器上。 我使用命令解决了它 - sudo apt-get install g ++

+0

感谢Andrew的编辑。 – user8507050