Skip to content

error: linker cc not found #1595

@josecelano

Description

@josecelano

Buidling the tracker on a fresh ubuntu 24 machine gave me this error:

   Compiling proc-macro2 v1.0.95
   Compiling libc v0.2.172
   Compiling serde v1.0.219
   Compiling serde_json v1.0.140
   Compiling zerocopy v0.8.25
   Compiling slab v0.4.9
   Compiling getrandom v0.3.3
   Compiling rustix v1.0.7
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `serde_json` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

I fixed with:

sudo apt update
sudo apt install build-essential

I think that's not included in the documentation: https://docs.rs/torrust-tracker/latest/torrust_tracker/#minimum-requirements

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImproves Instructions, Guides, and Notices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions