在NixOS上运行堆栈导致C编译器错误

时间:2017-07-21 19:19:50

标签: haskell-stack nixos

在NixOS构建上运行stack build甚至stack --nix build会产生以下结果:

Linking /run/user/1000/stack7176/old-time-1.1.0.3/.stack-work/dist/x86_64-linux-nix/Cabal-1.22.5.0/setup/setup ...
Configuring old-time-1.1.0.3...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/run/user/1000/stack7176/old-time-1.1.0.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

我已在我的系统上安装了gccclang并验证了,即gcc确实在我的路径上。如何解决这个问题?

0 个答案:

没有答案