linux下的Rust开发调试环境搭建,用的是Debian的一个发行版,这篇文章就是等windows下的安装过程写的,所以也推荐别用windows玩Rust了,算了,花哨的功能真香,微软…
下载 Rustup 并安装 Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
配置Rustupinfo: downloading installerWelcome to Rust!This will download and install the official compiler for the Rustprogramming language, and its package manager, Cargo.Rustup Metadata and toolchains will be installed into the Rustuphome directory, located at: /root/.rustupThis can be modifIEd with the RUSTUP_HOME environment variable.The Cargo home directory located at: /root/.cargoThis can be modifIEd with the CARGO_HOME environment variable.The cargo, rustc, rustup and other commands will be added toCargo's bin directory, located at: /root/.cargo/binThis path will then be added to your PATH environment variable bymodifying the profile file located at: /root/.profileYou can uninstall at any time with rustup self uninstall andthese changes will be reverted.Current installation options: default host triple: x86_64-unkNown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >
输入1就是默认安装,2就是自定义安装,3就是取消安装
在这里我选择1
差不多等待下载一段时间,会提示你安装完毕
刷新终端source $HOME/.cargo/env
输入rustc --version
输入这样的版本号则表示安装成功
以上是内存溢出为你收集整理的Linux下的Rust开发调试环境搭建全部内容,希望文章能够帮你解决Linux下的Rust开发调试环境搭建所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)