【发布时间】:2022-01-11 15:02:12
【问题描述】:
我正在尝试使用 rvm 安装 ruby。
我正在安装的用户是go
[go@ci-qa1 ~]$ whoami
go
我最初获取密钥 -
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
(honeymaker_venv) [go@ci-qa1 ~]$ curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
gpg: key 39499BDB: "Piotr Kuczynski <piotr.kuczynski@gmail.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
并用于安装 -
curl -sSL https://get.rvm.io | bash -s stable --ruby
Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc
gpg: Signature made Sat 16 Jan 2021 12:16:22 AM IST using RSA key ID 39499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
GPG verified '/home/go/.rvm/archives/rvm-1.29.12.tgz'
Upgrading the RVM installation in /home/go/.rvm/
RVM PATH line found in /home/go/.mkshrc /home/go/.profile /home/go/.zshrc.
RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
RVM sourcing line found in /home/go/.profile /home/go/.zlogin.
RVM sourcing line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
Upgrade of RVM in /home/go/.rvm/ is complete.
Thanks for installing RVM ????
Please consider donating to our open collective to help us maintain RVM.
???? Donate: https://opencollective.com/rvm/donate
Ruby enVironment Manager 1.29.12 (latest) (c) 2009-2020 Michal Papis, Piotr Kuczynski, Wayne E. Seguin
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/7/x86_64/ruby-3.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Installing requirements for centos.
Installing required packages: ruby...go password required for 'yum install -y ruby':
为什么要输入密码?我已经阅读了多个 pther stackoverflow 答案,说不要以 root 身份安装。我该如何解决这个问题?
如果我禁用自动库 -
Checking requirements for centos.
Missing required packages: ruby
RVM autolibs is now configured with mode '2' =>
'Allow RVM to use package manager if found, fail if dependencies are missing. This is default.',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Requirements installation failed with status: 1.
【问题讨论】:
标签: ruby-on-rails ruby rvm