How can I debug a 'linker cc not found' error in a NixOS build?

Question

Grade: Education Subject: Support
How can I debug a 'linker cc not found' error in a NixOS build?
Asked by:
63 Viewed 63 Answers

Answer (63)

Best Answer
(341)
Start by examining the build logs carefully. They often provide clues about which dependencies are missing or which compiler version is being used. Use `nix-shell` to reproduce the error in a clean environment and experiment with different compiler versions. Also, check the NixOS documentation and forums for similar issues and solutions.