[Solved] Rust Compile Error: error: linker `cc` not found

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Compiling ceshi v0.1.0 (/home/jia/ceshi)
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: could not compile `ceshi` due to previous error
Compiling ceshi v0.1.0 (/home/jia/ceshi) error: linker `cc` not found | = note: No such file or directory (os error 2) error: could not compile `ceshi` due to previous error
   Compiling ceshi v0.1.0 (/home/jia/ceshi)
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `ceshi` due to previous error

 

Execute the following command in the terminal:

sudo apt update
sudo apt install build-essential

Read More: