網站首頁 編程語言 正文
我在Windows 7上面配置Rust運行環境的時候報了下面的錯誤,差點導致我去裝Windows11或者換Linux...
這個Windows7真是讓人頭疼,各種組件都是缺失的,要我一個一個安裝,缺少各種dll,NET.flamework就弄了半天...... VisualStudioCode直接打不開
廢話不多說,展示一下報錯內容
C:\rustspace>rustc main.rs
error: linker `link.exe` not found
|
= note: 系統找不到指定的文件。 (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
花費了大量時間以后,我終于解決了這個問題,唉
解決方法是在命令行就是CMD(可以用Ctrl+R輸入cmd打開,想必大家都知道,不過多強調)
執行下面兩行命令:
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
這是再運行一下,錯誤就沒了,eclipse和idea都好了
這樣問題就會完美解決。
原文鏈接:https://blog.csdn.net/albertensterin/article/details/126877616
相關推薦
- 2022-11-26 React常見跨窗口通信方式實例詳解_React
- 2022-12-23 Android中Intent與Bundle的使用詳解_Android
- 2022-12-09 Python網絡編程之Python編寫TCP協議程序的步驟_python
- 2023-04-11 Python中字符串類型代碼的執行函數——eval()、exec()和compile()詳解_pyt
- 2022-10-05 Android源碼探究之BaseDexClassLoader的使用_Android
- 2023-07-26 webpack原理之開發第一個loader
- 2022-05-24 awk腳本統計一組單詞中字母出現最多最少頻率_linux shell
- 2022-05-03 C++STL函數和排序算法的快排以及歸并排序詳解_C 語言
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支