当前位置:首页 >> 编程语言 >> 【Rust】第一节:安装,长虹z1怎么样

【Rust】第一节:安装,长虹z1怎么样

cpugpu芯片开发光刻机 编程语言 1
文件名:【Rust】第一节:安装,长虹z1怎么样 【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 bymodifying the profile files located at:/Users/rogerqian/.profile/Users/rogerqian/.bash_profile/Users/rogerqian/.zshenvYou can uninstall at any time with rustup self uninstall andthese 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 installation3) 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))

协助本站SEO优化一下,谢谢!
关键词不能为空
同类推荐
«    2025年12月    »
1234567
891011121314
15161718192021
22232425262728
293031
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言
文章归档
网站收藏
友情链接