matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
142 stars 32 forks source link

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

Closed Haui1112 closed 1 month ago

Haui1112 commented 3 months ago

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.
reivilibre commented 3 months ago

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

Haui1112 commented 3 months ago

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.

devonh commented 1 month ago

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