rust-synapse-compress-state icon indicating copy to clipboard operation
rust-synapse-compress-state copied to clipboard

Rust build fails with 'error: linker `cc` not found

Open Haui1112 opened this issue 1 year ago • 1 comments

I cant copy the text so here's a screenshot of the VM:

Bildschirmfoto vom 2024-04-09 16-48-12

Expected behavior: build without errors

Steps to reproduce:

  1. install vm debian 12.4
  2. install rust (https://www.rust-lang.org/tools/install)
  3. install git
  4. run git clone of this repo
  5. move into repo folder
  6. run 'cargo build' or 'cargo build --release'
  7. see error.

Haui1112 avatar Apr 09 '24 14:04 Haui1112

Try installing GCC, I think it's in the build-essential APT package but if that doesn't work look around for other ones that sound right

reivilibre avatar Apr 09 '24 15:04 reivilibre

Try installing GCC, I think it's in the build-essential APT package but if that doesn't work look around for other ones that sound right

Thanks for answering. I tried build essentials but that alone didnt do it. What changed it was pkg-config although I did install openssl before.

Haui1112 avatar Apr 12 '24 08:04 Haui1112

@Haui1112 Based on your previous comment I take it that you were able to resolve the problem? If so I will close this issue.

devonh avatar Jun 21 '24 17:06 devonh