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

【Rust】第一节:安装

1 说明

一些学习记录
环境:MacOS

2 步骤

1、执行curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
2、看到打印

info: downloading installerWelcome to Rust!... ...This path will then be added to your PATH environment variable by
modifying the profile files located at:/Users/rogerqian/.profile/Users/rogerqian/.bash_profile/Users/rogerqian/.zshenvYou can uninstall at any time with rustup self uninstall and
these changes will be reverted.Current installation options:default host triple: aarch64-apple-darwindefault toolchain: stable (default)profile: defaultmodify PATH variable: yes1) Proceed with installation (default)
2) Customize installation
3) Cancel installation

3、键入1,回车
4、看到报错

could not amend shell profile: '/Users/rogerqian/.bash_profile': could not write rcfile file: '/Users/rogerqian/.bash_profile': Permission denied (os error 13)`

5、修改权限,执行cd /Users/XXX,然后chmod 777 .profile,如果报错中还有其他文件,同理进行修改
6、查看权限修改是否成功ls -l .profile
7、再次执行步骤1、2、3,看到Rust is installed now. Great!即为成功
8、关闭终端,重新进入,rustc --version,验证是否安装成功
9、下载c编译器xcode-select --install(如果你没有的话)

3 参考

Rust 程序设计语言 中文版 安装
解决使用Rustup在Linux或macOS上无法安装Rust(Permission denied (os error 13))

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

相关文章:

  • 12-07 周四 Pytorch 使用Visdom 进行可视化
  • 基于微信小程序的智慧校园导航系统研究
  • VUE3给table的head添加popover筛选、时间去除时分秒、字符串替换某字符
  • 19、XSS——HTTP协议安全
  • 深圳锐杰金融:用金融力量守护社区健康
  • python对py文件加密
  • Thymeleaf生成pdf表格合并单元格描边不显示
  • C# Solidworks二次开发:三种获取SW设计结构树的方法-第二讲
  • 分布式搜索引擎03
  • flex布局的flex为1到底是什么
  • class050 双指针技巧与相关题目【算法】
  • 计算机操作系统4
  • 【ASP.NET CORE】EntityFrameworkCore 数据迁移
  • 说说React jsx转换成真实DOM的过程?
  • MongoDB知识总结
  • 【LeeCode】1.两数之和
  • Python 作业答疑_6.15~6.18
  • Diffusion 公式推导
  • 【C语言快速学习基础篇】之一基础类型、进制转换、数据位宽
  • 使用GPT-4V解决Pycharm设置问题
  • qt 安装
  • 【论文合集】在非欧空间中的图嵌入方法(Graph Embedding in Non-Euclidean Space)
  • 锐捷EWEB网管系统 RCE漏洞复现
  • Clickhouse在货品标签场景的应用
  • CentOS 7 lvm 更换坏盘操作步骤小记 —— 筑梦之路
  • zabbix的自动发现和注册、proxy代理和SNMP监控
  • 以Hub为中心节点的网络技术探析
  • 百度推送收录工具-免费的各大搜索引擎推送工具
  • 物流实时数仓ODS层——Mysql到Kafka
  • 奇迹mu 架设过程中可能会出现的问题及解决办法