torrust-tracker icon indicating copy to clipboard operation
torrust-tracker copied to clipboard

error: linker `cc` not found

Open josecelano opened this issue 5 months ago • 0 comments

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

josecelano avatar Jun 22 '25 16:06 josecelano