在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
我已在我的系统上安装了gcc
和clang
并验证了,即gcc
确实在我的路径上。如何解决这个问题?