小编use*_*342的帖子

如何在shell脚本中使用rvm

是否可以在shell脚本中加载rvm.任何人都可以给出一个例子.当我尝试一个shell脚本.我正在使用ubuntu系统

#!/bin/bash
rvm use 1.9.3
Run Code Online (Sandbox Code Playgroud)

它给了我错误

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.
Run Code Online (Sandbox Code Playgroud)

bash rvm

12
推荐指数
2
解决办法
8406
查看次数

标签 统计

bash ×1

rvm ×1