发布时间:2022-09-16 15:00
I'm running Debian on Windows 10 (Windows Subsystem for Linux) and installed Rust using the command:
curl https://sh.rustup.rs -sSf | sh
There were no errors in the install, but when I tried to compile with rustc I got the error linker 'cc' not found.
解决方案
The Linux Rust installer doesn't check for a compiler toolchain, but seems to assume that you've already got a C linker installed! The best solution is to install the tried-and-true gcc toolchain.
sudo apt install build-essential
If you need to target another architecture, install the appropriate toolchain and target the compilation as follows:
rustc --target=my_target_architecture -C linker=target_toolchain_linker my_rustfile.rs
CentOS7下安装配置Docker | 并创建镜像提交到DockerHub
百度java开发要求有多高?大学本科如何三个月逆袭拿offer
【Pygame实战】你说神奇不神奇?吃豆人+切水果结合出一款你没玩过的新游戏!(附源码)
Linux下的C程序,通过最简单的管道('|')实现两个程序间的数据传递
SpringBoot整合Redis之@Cacheable、@CachePut、@CacheEvict注解的使用
【文件处理】python实现将 gnt 格式的文件转换为 png 格式
sqlserver提权失败_SqlServer SA 弱口令提权