first-try/installation #703
Replies: 50 comments 16 replies
-
如果由于某些众所周知的原因卡在安装rust的第一步 https://github.com/chanchancl/How-to-build-a-develop-environment-for-rust |
Beta Was this translation helpful? Give feedback.
-
rustc -V V 为什么必须大写,小写就不行了,感觉不合理啊 |
Beta Was this translation helpful? Give feedback.
-
建议加上Rust的版本更新? |
Beta Was this translation helpful? Give feedback.
-
Windows 上装msvc版的rust除了Microsoft C++ Build Tools的依赖以外,好像还要装任意版本的Windows SDK,不然link.exe 会报找不到kernel32.lib的错误(不知道是不是我link.exe版本的问题)(最主要的是有些版本的link.exe输出结果的编码还不是utf-8🤡,盯着字节串不知道报了什么错) |
Beta Was this translation helpful? Give feedback.
-
请问 |
Beta Was this translation helpful? Give feedback.
-
使用brew在MacOS安装rust brew install rust
rust -V
cargo -V |
Beta Was this translation helpful? Give feedback.
-
rustup-init.exe可以在这个网站下载https://www.rust-lang.org/tools/install |
Beta Was this translation helpful? Give feedback.
-
windows 下直接在 默认路径 VS 应该就ok了 |
Beta Was this translation helpful? Give feedback.
-
建议加上命令行标记 $ 的相关解释,有小伙伴专门来问为啥照着命令打上去却报错 |
Beta Was this translation helpful? Give feedback.
-
考虑下加上 rust upgrede 嘛? |
Beta Was this translation helpful? Give feedback.
-
从 |
Beta Was this translation helpful? Give feedback.
-
windows版本最新的安装方式: |
Beta Was this translation helpful? Give feedback.
-
标题叫“安装 Rust”,左边的那列目录叫“1.1. 安装Rust环境”,不一样,可能需要修复一下。 参考修改后的文本:”由于你用的 Rust 版本**(本书采用2021版本)**可能跟本书写作时不一样,一些编译错误和警告可能也会有所不同。“ |
Beta Was this translation helpful? Give feedback.
-
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh |
Beta Was this translation helpful? Give feedback.
-
安装好慢,规则+系统代理没用,就50k/s |
Beta Was this translation helpful? Give feedback.
-
不想下virtual studio所以是自定义安装,本来是设置好 .cargo 和 .rustup 的 报错就删了后默认安装也报错,所以就试了运行下在.cargo底下的bin目录里已经有的rustup(我也不知道它什么时候下载的) 直接输入rust -V也不行,返回 再下载就又回到上面了,后来想是不是换源导致的于是把config删了,还是不行 😅 不能使用msi下载因为vscode的rust analyzer会报错 在另外一台win10试了下没有问题,请各位大佬麻烦排除下问题 🙏
|
Beta Was this translation helpful? Give feedback.
-
wsl2 在第一步的时候卡住,解决方案是
|
Beta Was this translation helpful? Give feedback.
-
https://www.cnblogs.com/manqing321/p/17026725.html Windows下安装慢,可以看看这边 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
体参见:在标准库寻找你想要的内容 ====> HTTP: 404 |
Beta Was this translation helpful? Give feedback.
-
电脑如果有 docker 的话,强烈推荐使用 vscode 的云端容器运行 rust。反正是初学,直接一步到位,不用自己配置。等到自己比较熟悉了,再在本地配置岂不美哉? 参考 vscode 扩展: |
Beta Was this translation helpful? Give feedback.
-
现在新版的rust在windows下官方提供了一键安装包,会把rust和vs一块给安装好,不需要手动配置。 |
Beta Was this translation helpful? Give feedback.
-
在 Ubuntu 20.04 环境下(我用的是 Github Codespace),如果出现了 error: could not amend shell profile: '/home/codespace/.config/fish/conf.d/rustup.fish': could not write rcfile file: '/home/codespace/.config/fish/conf.d/rustup.fish': No such file or directory (os error 2) 的错误,可以尝试命令 curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path
|
Beta Was this translation helpful? Give feedback.
-
Windows11, 亲测rust可以在终端用winget安装, winget install rustup |
Beta Was this translation helpful? Give feedback.
-
安装 x86_64-pc-windows-gnu 时,如果输入$ curl https://sh.rustup.rs -sSf | sh 后提示 Rust requires a linker and Windows API libraries but they don't seem to be available. 并接3个选项,直接选择选项 3 即可进入后续步骤。 |
Beta Was this translation helpful? Give feedback.
-
MSYS的清华代理速度杠杠滴,地址https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/ |
Beta Was this translation helpful? Give feedback.
-
debian 貌似可以直接用apt安装 |
Beta Was this translation helpful? Give feedback.
-
first-try/installation
https://course.rs/first-try/installation.html
Beta Was this translation helpful? Give feedback.
All reactions