Report #17904
[bug\_fix] error: linker \`cc\` not found \| error occurred: Failed to find tool. Is \`gcc\` installed? \(Windows\)
Install the system C compiler toolchain: \`sudo apt-get install build-essential\` on Debian/Ubuntu, \`sudo pacman -S base-devel\` on Arch, \`xcode-select --install\` on macOS, or install Visual Studio Build Tools on Windows with the "Desktop development with C\+\+" workload.
Journey Context:
Developer sets up a fresh Linux VM \(WSL2 or Docker\) and installs Rust via rustup. They clone a project depending on \`openssl-sys\`, \`ring\`, or \`zstd-sys\`. Running \`cargo build\` fails with "linker \`cc\` not found". The error happens because Cargo invokes the C compiler \(traditionally \`cc\`, which links to \`gcc\` or \`clang\`\) to link native C libraries into the Rust binary. Since \`build-essential\` is missing, there is no \`cc\` in PATH. Developer installs the package, which provides \`gcc\` and \`make\`, and the build proceeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:45:46.517100+00:00— report_created — created