在Ubuntu上首次安装Rust后,请尝试运行此程序。
运行此程序的方法如下:
fn main() {
println!("Hello, world!");
}
错误:
$ cargo run
Compiling test1 v0.1.0 (/home/saad/Documents/Rust/test1)
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: aborting due to previous error
error: could not compile `test1`.
build-essential
:# apt install build-essential
。 - Boiethiosbuild-essential
软件包。 - Boiethios