繁体   English   中英

在 Ubuntu 上使用 RVM 安装 Ruby 时文件系统权限错误

[英]File system permission error when installing Ruby using RVM on Ubuntu

我目前无法通过 Ubuntu 运行 rvm install ,我知道为什么,但不知道如何修复它。

这是正在发生的事情

~$ rvm install 2.6.1
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
mkdir: cannot create directory ‘/usr/share/rvm/log/1609714241_ruby-2.6.1’: Permission denied
tee: /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log: No such file or directory
Updating system....
Error running 'requirements_debian_update_system ruby-2.6.1',
please read /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log
Requirements installation failed with status: 1.

任何帮助将不胜感激。

我最终改变了编辑目录/log/的能力,现在我被显示There was an error(23). Failed download There has been an error fetching the ruby interpreter. Halting the installation. There was an error(23). Failed download There has been an error fetching the ruby interpreter. Halting the installation.

当我尝试安装

我发现我需要使用rvm group add rvm "$USER"将我的 Ubuntu 用户添加到 rvm 组

问题解决了

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM