捆绑包更新错误 - 修复 kernel_require.rb:55:in `require':

Bundle Update Error - Fix for kernel_require.rb:55:in `require':

我的问题与这个人在这个问题上的问题基本相同:

kernel_require.rb:55:in `require': cannot load such file error

我正在尝试修复捆绑包,但无法更新捆绑包。

$ sudo gem install bundle
Fetching:
bundle-0.0.1.gem (100%)
Successfully installed bundle-0.0.1
Parsing documentation for bundle-0.0.1
Installing ri documentation for bundle-0.0.1 1
gem installed
$ bundle update
Could not locate Gemfile

我一直在尝试让 fxruby 正常工作,并且卸载了 macports 和 fxruby 几次。我担心 bundle 是否在某个时候由 macports 安装,我可能已经破坏了它。

您在安装捆绑包后立即发布 bundle update,所以我认为您的当前目录中可能还没有 Gemfile,这是您的错误提示:

Could not locate Gemfile

检查是否有 Gemfile,cd 在有 Gemfile 的目录中或创建一个并重试。

找到/创建此 Gemfile 后,您应该首先 bundle install