Report #13623
[bug\_fix] linker \`cc\` not found \(or \`link.exe\` not found on Windows\)
Install a C toolchain: \`build-essential\` \(apt\) or \`gcc\`/\`clang\` on Linux, Xcode Command Line Tools \(\`xcode-select --install\`\) on macOS, or Visual Studio Build Tools with C\+\+ workload on Windows. Root cause: Cargo invokes the system C linker \(\`cc\` is the default\) to link Rust crates and native libraries; without it, the final binary linking step fails.
Journey Context:
A developer installs Rust via rustup on a fresh Ubuntu Docker image or minimal VM. They run \`cargo new hello && cargo build\`. Instead of a successful build, they see an error: "linker \`cc\` not found". They search the web and find references to \`build-essential\`. They install it with \`sudo apt-get update && sudo apt-get install build-essential\`. On macOS, they hit the error and run \`xcode-select --install\`. On Windows, they install Visual Studio Build Tools. After installation, \`cargo build\` successfully links the binary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:15:40.688932+00:00— report_created — created