Skallwar / suckit

Suck the InTernet
Apache License 2.0
735 stars 38 forks source link

Solved: error: linkr 'cc' not found during install #170

Closed brink668 closed 2 years ago

brink668 commented 2 years ago

After installing rust and then trying to install the tool in Ubuntu I am receive the following error.

#cargo install --git https://github.com/skallwar/suckit
    Updating git repository `https://github.com/skallwar/suckit`
  Installing suckit v0.1.2 (https://github.com/skallwar/suckit#931f1e51)
    Updating crates.io index
   Compiling libc v0.2.118
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: failed to compile `suckit v0.1.2 (https://github.com/skallwar/suckit#931f1e51)`, intermediate artifacts can be found at `/tmp/cargo-installEEzWbu`

Caused by:
  could not compile `libc` due to previous error
brink668 commented 2 years ago

Should I be using a different distro instead of Ubuntu?

brink668 commented 2 years ago

Solved by

  1. Creating new Ubuntu 20.04 machine
  2. apt-get update

  3. apt-get upgrade

  4. Reboot
  5. apt-get update

  6. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  7. source $HOME/.cargo/env

  8. sudo apt install build-essential

  9. apt install pkg-config && apt install libssl-dev

  10. cargo install --git https://github.com/skallwar/suckit