我有一个使用// javascript
var a = 1;
// or c#
int a = 1
a.toString()
构建的项目,它取决于stack
。当我network
时,它会说
stack build
当然,我很乐意。但是[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
(没有cabal install network
)工作正常,但stack
怎么可能使用它?
答案 0 :(得分:1)
为了在此处获得更好的信息,您可以通过手动构建网络来确保保存所有生成的文件:
stack unpack network-2.6.2.1
cd network-2.6.2.1
stack init
stack build
答案 1 :(得分:0)
我认为C compiler cannot create executables
意味着您没有安装可用的C编译器。
config.log
由configure
命令生成,我认为stack
不会保存它。 stack
会将其他日志记录输出保存在
~/.stack/global-project/.stack-work/logs/...
它与发送到终端的内容相同,因此可能无济于事。