gpt4 book ai didi

ruby - 为什么 bundler 选择了错误的 ruby​​ 版本?

转载 作者:行者123 更新时间:2023-12-04 19:29:47 25 4
gpt4 key购买 nike

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
$ bundle exec rake assets:precompile
Your Ruby version is 2.7.0, but your Gemfile specified 2.7.2
$ ~/.rvm/bin/rvm default do bundle exec rake assets:precompile
Your Ruby version is 2.7.0, but your Gemfile specified 2.7.2
$ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
$ ~/.rvm/bin/rvm default do ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
$ which ruby
/home/sardsapp/.rvm/rubies/ruby-2.7.2/bin/ruby
我什至不知道从哪里开始。我什至重新启动了机器,这些命令是逐字记录的。我不知道可能出了什么问题。
我的 Gemfile 确实指定了 2.7.2,这是我通过 rvm 的默认 ruby​​ 版本。我卸载了所有其他 rvm 版本的 ruby​​。我没有安装 ubuntu ruby​​ 包。

最佳答案

您可以创建一个新的 gemset 并将 ruby​​ 版本切换到 2.7.2

关于ruby - 为什么 bundler 选择了错误的 ruby​​ 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67750420/

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