如何让linux系统使用rvm for ruby?
安装了rvm,但是命令行继续使用ruby的系统版本,然后一旦我删除它,它就会说找不到。
> nolan@nolan-UX305LA:~/Downloads$ sudo dpkg -i ./shopify-cli-2.0.1.deb
> (Reading database ... 251417 files and directories currently installed.)
> Preparing to unpack ./shopify-cli-2.0.1.deb ...
> /var/lib/dpkg/tmp.ci/preinst: 1: /var/lib/dpkg/tmp.ci/preinst: gem: not found
> dpkg: error processing archive ./shopify-cli-2.0.1.deb (--install):
> new shopify-cli package pre-installation script subprocess returned error exit status 127
> Errors were encountered while processing: ./shopify-cli-2.0.1.deb
> nolan@nolan-UX305LA:~/Downloads$ which ruby
> /usr/share/rvm/rubies/ruby-3.0.0/bin/ruby
你可以看到上面的“gem:notfound”,但如果我输入“ruby-v”,我会得到。。。
> ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
这一切背后的原因是一揽子计划
shopify-cli-2.0.1.deb
需要ruby 2.6+而我只有2.5
1条答案
按热度按时间pqwbnv8z1#
你确定吗?
需要ruby 2.6+而我只有2.5
如果你看这里,它清楚地显示版本3.0.0
ruby 3.0.0p0(2020-12-25修订版95aff21468)[x86_64-linux]
如果正确阅读错误,则会显示:
gem: not found
,可能表示您可能必须安装gem文件。首先尝试此操作-在控制台中键入: