【发布时间】:2021-07-12 13:39:36
【问题描述】:
我正在尝试安装第二个版本的捆绑程序。安装输出成功消息,但新的捆绑器安装似乎根本不存在。如何更正此安装?
# Use sudo because of *system* rbenv installation
sudo gem install bundler:2.1.4
# => Successfully installed bundler-2.1.4
# Check for existence of new installation, but only the old version is available
gem list bundler
# => bundler (default: 1.17.2)
bundle _2.1.4_ -v
# => can't find gem bundler (= 2.1.4) with executable bundle (Gem::GemNotFoundException)
ls /usr/local/rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/
# => [shows bundler-1.17.2 but not any other bundler directories]
我正在使用 rbenv(不是 rvm)的系统安装。我不在捆绑包中工作(也没有在 gemset 中工作,因为我没有使用 rvm)。
【问题讨论】: