我正在Windows 10上运行Debian(适用于Linux的Windows子系统)并使用以下命令安装Rust:
curl https://sh.rustup.rs -sSf | sh
Run Code Online (Sandbox Code Playgroud)
安装中没有错误,但是当我尝试编译时,rustc我收到了错误linker 'cc' not found.
我需要 gcc 来编译 ac 代码,但无法在 wsl 上安装 gcc。我试过了,sudo apt-get install gcc但没有用。这是错误。
hack@DESKTOP-VMQA3JB:~$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages …Run Code Online (Sandbox Code Playgroud)