2017-08-23 82 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