gpt4 book ai didi

ruby - RVM 不是函数,选择 'rvm use ...' 的 ruby 将不起作用

转载 作者:数据小太阳 更新时间:2023-10-29 06:17:11 26 4
gpt4 key购买 nike

列出 ruby​​ 版本

console:~$ rvm list

rvm rubies

ruby-2.0.0-p481 [ i686 ]

# => - current
# =* - current && default
# * - default

尝试使用特定版本的ruby

console:~$ rvm use 2.0.0

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.

最佳答案

您的控制台未作为登录 shell 运行,因此无法访问 rvm 功能。如果您运行的是 Ubuntu,您可以:

  1. 打开控制台
  2. 选择编辑 -> 配置文件首选项
  3. 选择选项卡:标题和命令
  4. 选中“以登录 shell 运行命令”复选框
  5. 重启终端

关于ruby - RVM 不是函数,选择 'rvm use ...' 的 ruby 将不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23963018/

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