[英]Rust installation fails on Linux with error "OS 21"
当我尝试在我的 Linux 机器上安装 Rust 时,出现了这个错误:
error: could not amend shell profile: '/home/$Username/.profile': could not write rcfile file: '/home/$Username/.profile': Is a directory (os error 21)
许多类 unix 系统使用~/.profile
文件作为放置用户会话启动代码的点。 还有其他具有类似功能的文件。 您不应将该文件用于任何其他目的(例如,它是一个目录)。
您的安装脚本显然想向该文件添加一些内容。 这并不罕见,因为~/.profile
可用于设置程序的搜索路径。
您应该重命名(或删除) ~/.profile
目录。
我不得不删除我的 .profile 文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.