在托管中使用带有 rvm 的捆绑包
我正在尝试,
hosting_barthez@lithium:~/projects/taxes/current$ bundle install
/usr/lib/ruby/1.8/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
from /usr/lib/ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:1276:in `gem'
from /var/lib/gems/1.8/bin/bundle:18
但是当我写作时
hosting_barthez@lithium:~/projects/taxes/current$ gem install bundler
Successfully installed bundler-1.0.15
1 gem installed
I am try
hosting_barthez@lithium:~/projects/taxes/current$ bundle install
/usr/lib/ruby/1.8/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
from /usr/lib/ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/1.8/rubygems.rb:1276:in `gem'
from /var/lib/gems/1.8/bin/bundle:18
but when I write
hosting_barthez@lithium:~/projects/taxes/current$ gem install bundler
Successfully installed bundler-1.0.15
1 gem installed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是显而易见的。您收到错误是因为您尝试仅使用
bundler
gem 附带的bundle
命令,而不安装它。您必须安装bundler
才能使用bundle
。I think that is obvious. You got error because you were trying to use
bundle
command which comes withbundler
gem only, without installing it. You have to installbundler
to usebundle
.