发布时间: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
微信小商店连接小鹅通:快速解决课程订单信息无法自动同步的问题
Visual Studio 生产环境配置方案:SlowCheetah
修改mysql触发redis_redis作为mysql的缓存服务器(读写分离,通过mysql触发器实现数据同步)...
交换机下接路由器lan还是wan_同一网络中如何配置多个路由器?
yolov5-6.0部署:基于旋转目标的yolov5部署---opencv
kubernetes的DevOps业务(二):Jenkins,GitLab,Harbor,Tekton,GitOps
【Verilog语法1】加载存储器$readmemh和$readmemb函数的使用