当前位置: 首页 > news >正文

linux系统下vscode portable版本的rust环境搭建004:rust

  • 目的:希望在获得一个新的系统之后,以最简便快速的方式搭配一个rust的编程环境
  • 命令在线安装只执行这句就行了 :curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh,因为是要portable安装所以按照以下的方式执行。

下载

  • 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" ]; thenecho "rust folder already exists."
elsetar -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
我是用局域网文件传递命令从windows主机的本地复制的,可能传输中出现了问题,导致tar.gz类型有误,重新下载以下就行了

CG

  • 一直都在想,不管用谁的电脑,我都可以得到一个完全一致的工作环境,上面有我喜爱的软件,有我保存的重要资料,甚至浏览器的各种偏好都得一模一样!现在的云计算技术可以部分解决这个问题,但是远远不够。我的理想境界是,无论身处何地,一开机,看到的就是自己的电脑,或者相当于自己的电脑!自己可以任意处理自己的数据,不把隐私泄露给别人,当然也不要破坏人家已有的软件环境。

  • https://forum.ubuntu.com.cn/viewtopic.php?t=490830

  • 其他安装 Rust 的方法

  • Rust机器学习之tch-rs

  • https://github.com/torchrs/torchrs/blob/master/examples/mnist.rs

  • https://github.com/LaurentMazare/tch-rs

  • 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.

  • [Android] Dumpster_v3.5.382.38f89 Android 4.0.3

http://www.lryc.cn/news/300441.html

相关文章:

  • 从汇编角度解释线程间互斥-mutex互斥锁与lock_guard的使用
  • 高程 | 多态性(c++)
  • LV.23 D2 开发环境搭建及平台介绍 学习笔记
  • [uniapp生命周期]详细讲解uniapp中那些属于vue生命周期,那些属于uniapp独有的生命周期,以及这中间的区别 相关的内容和api 代码注释
  • 【动态规划】【记忆化搜索】【状态压缩】1681. 最小不兼容性
  • JVM-类加载器 双亲委派机制
  • vue axios 请求后端无法传参问题
  • 打印最小公倍数
  • [AIGC] Java 和 Kotlin 的区别
  • 蓝桥杯电子类单片机提升一——超声波测距
  • 前端架构: 脚手架开发流程中的难点梳理
  • django中配置使用websocket
  • Rust复合类型详解
  • 学习 JavaScript 闭包
  • VScode中配置 C/C++ 环境 | IT拯救者
  • 基于Python实现Midjourney集成到(个人/公司)平台中
  • 蓝桥杯刷题--python-6
  • node+vue3+mysql前后分离开发范式——实现对数据库表的增删改查
  • 【Android】使用Apktool反编译Apk文件
  • (04)Hive的相关概念——order by 、sort by、distribute by 、cluster by
  • Django模板(二)
  • 勒索病毒最新变种.faust勒索病毒来袭,如何恢复受感染的数据?
  • python 人脸检测器
  • 机器学习与深度学习
  • 算法训练营day27(补),贪心算法1
  • [office] excel2003限定单元格输入值范围教程 #微信#经验分享
  • OLED显示红外遥控键码
  • LabVIEW智能温度监控系统
  • 专业140+总分420+浙江大学842信号系统与数字电路考研经验电子信息与通信,真题,大纲,参考书。
  • C语言学习day15:数组强化训练