簡體   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