gpt4 book ai didi

Ruby 和 RVM 版本显示不正确

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:33:47 25 4
gpt4 key购买 nike

当我从我的 ubuntu 12.04 终端运行 ruby -v 时,我得到 ruby​​ 2.1.1p76(2014-02-24 修订版 45161)[i686-linux]。但是当我通过这个命令指定 rvm 使用 ruby​​ 2.1.1 时 rvm use 2.1.1 我得到这个输出 --> `

tamim@tamim-K43E:/media/Software/git/regexper$ rvm use ruby 2.1.1p76
ruby-2.0.0-p247 is not installed.
To install do: 'rvm install ruby-2.0.0-p247'

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

`我是 ruby​​ 的新手,以前从未接触过它,只是用它来安装软件。

    tamim@tamim-K43E:/media/Software/git/regexper$ rvm -v
ruby-2.0.0-p247 is not installed.
To install do: 'rvm install ruby-2.0.0-p247'

rvm 1.25.22 (manual) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

gem 版本:2.2.2

最佳答案

只有以下内容才有效:

rvm use ruby-2.1.1

关于Ruby 和 RVM 版本显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23045927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com