Stack cannot build network - where is config.log?

I have a project to build with stack, and it depends network. When I do stack build, he 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

Of course I would love to. But where is it config.log? Or how can I recreate it?

It just cabal install network(without stack) works fine, but how to stack builduse it?

0
source share
2 answers

To get more complete information, you can make sure that all generated files are saved by manually creating a network:

stack unpack network-2.6.2.1
cd network-2.6.2.1
stack init
stack build
+1
source

I think that C compiler cannot create executablesmeans you do not have a C compiler installed.

config.log configure, , stack . stack

~/.stack/global-project/.stack-work/logs/...

, , .

0

Source: https://habr.com/ru/post/1658498/


All Articles