本文介绍了堆栈无法建立网络 - config.log?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用 stack
构建的项目,它依赖于 network
。当我做堆栈生成
时,它说
I have a project to build with stack
and it depends on network
. When I do stack build
, it says
[1 of 1] Compiling Main ( /tmp/stack23678/network-2.6.2.1/Setup.hs, /tmp/stack23678/network-2.6.2.1/.stack-work/dist/i386-linux/Cabal-1.22.5.0/setup/Main.o )
Linking /tmp/stack23678/network-2.6.2.1/.stack-work/dist/i386-linux/Cabal-1.22.5.0/setup/setup ...
Configuring network-2.6.2.1...
...
checking whether the C compiler works... no
configure: error: in `/tmp/stack23678/network-2.6.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
config.log ?或者我该如何重新创建它?
Sure, I'd love to. But where is this config.log
? Or how can I re-create it?
只需 cabal install network
(没有 stack
)工程很好,但怎么可能 stack build
使用这个?
Just cabal install network
(without stack
) works fine but how could stack build
use this?
推荐答案
在这里获取更好的信息,您可以通过手动构建网络来确保所有生成的文件已保存:
In order to get better information here, you can make sure all generated files are saved by manually building network:
stack unpack network-2.6.2.1
cd network-2.6.2.1
stack init
stack build
这篇关于堆栈无法建立网络 - config.log?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!