ruby bundle install require: no such files to load 错误 [英] ruby bundle install require: no such files to load error
问题描述
我在通过 git 克隆的应用程序通过 bundle install 安装 gems 时遇到了麻烦.
I am running into troubles installing gems through bundle install from an app that i cloned through git.
这是 bundle install 的输出结果:
Here is the what the output from bundle install looks like:
bundle install
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in `require': no such file to load -- rubygems (LoadError)
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8
from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in `require'
from /usr/lib/ruby/vendor_ruby/bundler.rb:11
from /usr/bin/bundle:4:in `require'
from /usr/bin/bundle:4
我阅读了 google 和其他 stackoverflow 问题,但上面指向的文件在 th ruby 文件夹中,所以它不应该与应用程序相关(理论上这意味着我无法捆绑安装任何应用程序).有什么办法可以解决这个问题??
I read up on google and other stackoverflow questions but the file pointed to above is in th ruby folder so it should not be anyway related to the app (which in theory would mean i wouldn't be able to bundle install for any app). any way how to fix this??
我们将不胜感激!
推荐答案
我和你的问题一样,找了很多,都没有解决方案,最后问了公司同事,他刚跑
I have the same question with yours, I searched a lot, but no one is the solution, at last, I asked co-worker in my company, he just ran
gem list
要列出本地 gem,我们发现没有 bundler gem,所以他跑了
to list the local gems, we found there's no bundler gem, so he ran
gem install bundler
然后他跑了
bundle install
好的,成功了.
这篇关于ruby bundle install require: no such files to load 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!