[英]Two Ruby versions simultaneously?
I don't seem to be able to consistently switch between Ruby versions using rvm.我似乎无法使用 rvm 在 Ruby 版本之间始终如一地切换。 Having many gem issues--for example:
有很多宝石问题——例如:
capybara-3.26.0 requires ruby version >= 2.4.0, which is incompatible with the current version, ruby 2.3.3p222
[10:27:12] (master)
// ruby -v
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin17]
[10:27:13] (master)
// rvm list
ruby-2.3.3 [ x86_64 ]
=* ruby-2.6.0 [ x86_64 ]
ruby-2.6.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
I get alternating messages that I'm using one but need the other.我收到交替消息,我正在使用一个但需要另一个。 I don't care which I use so long as it works.
我不在乎我使用哪个,只要它有效。
Even after rvm uninstall 2.3.3
I still get that I'm using 2.3.3 when trying to run bundle
即使在
rvm uninstall 2.3.3
我仍然知道我在尝试运行bundle
时使用的是 2.3.3
I too experienced many issues with rvm
.我也遇到了很多
rvm
问题。 I switched to asdf
and haven't looked back.我切换到
asdf
并没有回头。 I use multiple versions of Ruby, Elixir, Python, Erlang, etc. and use different versions on multiple projects.我使用多个版本的 Ruby、Elixir、Python、Erlang 等,并在多个项目中使用不同的版本。 The Ruby plugin for
asdf
is asdf-ruby asdf
的 Ruby 插件是asdf-ruby
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.