我是 ruby 和 Rails 的新手,所以我有一个简单的问题。在我的机器上,宝石“矩阵”将通过
gem info
找到:
root@tRdmInt-deb12:/usr/share/redmine# gem info matrix
*** LOCAL GEMS ***
matrix (0.4.2)
Author: Marc-Andre Lafortune
Homepage: https://github.com/ruby/matrix
Licenses: Ruby, BSD-2-Clause
Installed at: /usr/lib/ruby/gems/3.1.0
An implementation of Matrix and Vector classes.
但是
bundle info
说宝石未知:
root@tRdmInt-deb12:/usr/share/redmine# bundle info matrix
Could not find gem 'matrix'.
为什么捆绑找不到宝石?
您使用
gem install matrix
安装了 gem。如果您希望捆绑程序检测到 gem,则需要将其添加到 /usr/share/redmine/Gemfile 并执行 bundle install