- 目的:希望在獲得一個新的系統(tǒng)之后,以最簡便快速的方式搭配一個rust的編程環(huán)境
-
命令在線安裝只執(zhí)行這句就行了 :
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
,因為是要portable安裝所以按照以下的方式執(zhí)行。
下載
- https://link.zhihu.com/?target=https%3A//static.rust-lang.org/dist/rust-1.68.2-x86_64-unknown-linux-gnu.tar.gz
- source code https://github.com/rust-lang/rust/releases
安裝
#!/bin/bash
sudo apt install build-essential
rust_folder="rust-1.68.2-x86_64-unknown-linux-gnu"
if [ -d "$rust_folder" ]; then
echo "rust folder already exists."
else
tar -xzvf rust-1.68.2-x86_64-unknown-linux-gnu.tar.gz
fi
mkdir ./rustlang
./$rust_folder/install.sh --destdir=./rustlang
$ echo 'export PATH="./rustlang/usr/local/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
$ cargo -V
$ rustc -V
相關錯誤
$ tar -zxvf rust-1.68.2-x86_64-unknown-linux-gnu.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
$ file rust-1.68.2-x86_64-unknown-linux-gnu.tar.gz
rust-1.68.2-x86_64-unknown-linux-gnu.tar.gz: gzip compressed data, original size modulo 2^32 322181574 gzip compressed data, reserved method, has CRC, has comment, encrypted, from FAT filesystem (MS-DOS, OS/2, NT), original size modulo 2^32 322181574
我是用局域網(wǎng)文件傳遞命令從windows主機的本地復制的,可能傳輸中出現(xiàn)了問題,導致tar.gz類型有誤,重新下載以下就行了
CG
-
一直都在想,不管用誰的電腦,我都可以得到一個完全一致的工作環(huán)境,上面有我喜愛的軟件,有我保存的重要資料,甚至瀏覽器的各種偏好都得一模一樣!現(xiàn)在的云計算技術可以部分解決這個問題,但是遠遠不夠。我的理想境界是,無論身處何地,一開機,看到的就是自己的電腦,或者相當于自己的電腦!自己可以任意處理自己的數(shù)據(jù),不把隱私泄露給別人,當然也不要破壞人家已有的軟件環(huán)境。
-
https://forum.ubuntu.com.cn/viewtopic.php?t=490830
-
其他安裝 Rust 的方法
-
JS NODE.JS ?? Modern FTP Server
-
JS Deploys a GitHub project to a FTP server using GitHub actions
-
An FTP client module for node.js
-
PY A quick and efficient way of pushing changed files to a website via FTP
-
Python FTP Server & Client, This is FTP server & client, client using PyQt GUI framework
-
Extremely fast and scalable Python FTP server library
-
適用于 VS Code 的超快速 sftp/ftp 擴展
-
FTP client for Rust
-
A mini FTP server and client in Rust
-
C++ aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.文章來源:http://www.zghlxwxcb.cn/news/detail-828108.html
-
[Android] Dumpster_v3.5.382.38f89 Android 4.0.3文章來源地址http://www.zghlxwxcb.cn/news/detail-828108.html
到了這里,關于linux系統(tǒng)下vscode portable版本的rust環(huán)境搭建004:rust的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!