Email me

Rust errors / Build and Cargo

Rust build error · checked with Rust 1.99.0

error: linker `cc` not found

error: linker `cc` not found

What it meansOn Linux and macOS Rust uses the system C compiler (cc) as its linker, and none is installed.

Why it happens

  • A fresh Linux install or slim Docker image without build tools.
  • macOS without the Xcode command line tools.

How to fix it

1. Debian or Ubuntu

sudo apt update && sudo apt install build-essential

2. Fedora

sudo dnf install gcc

3. Alpine (musl)

apk add build-base

4. macOS

xcode-select --install

Other wordings of this error

linker cc not found, error: linker `cc` not found rust ubuntu, linker gcc not found

Other build errors

Up next

Find the right pagePaste any Rust errorCompiler codes and build errors in one finder.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ