错误
root@baiyun-virtual-machine:/home/baiyun/hello# cargo run
Compiling hello v0.1.0 (/home/baiyun/hello)
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: aborting due to previous error
error: could not compile `hello`.
下列软件包有未满足的依赖关系:
gcc : 依赖: gcc-7 (>= 7.3.0-12~) 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
- apt install aptitude
- aptitude install gcc
- aptitdue会给出依赖解决方案,第一个选项
n
,第二个y
,然后等待安装即可