Ubuntu 10.04 上 rubygems 更新后 dev_appserver.rb 无法启动
我安装了 rubygems 1.3.5(或 1.3.6?),然后在很长一段时间后再次进行了 sudo gem update
。一些宝石抱怨他们需要更新的宝石版本。因为 sudo gem update --system
在 Ubuntu 上已停用,所以我按照以下步骤操作:如何在 Ubuntu 10.4 上获取 RubyGems 1.3.6 但现在我无法再启动 dev_appserver.rb
了,它说:
=> Bundling gems
ERROR: While executing gem ... (RuntimeError)
Unknown command bundle
我也尝试过 sudo gem update
和 sudo gem update --system
又来了几次,但现在一切都是最新的。这是我的宝石列表:http://pastebin.com/cFaTCyF5
I had rubygems 1.3.5 (or 1.3.6?) installed and then made a sudo gem update
after a long while again. Some gems complained they needed a newer gems version. Because sudo gem update --system
is deactivated on Ubuntu I followed these steps: How can I get RubyGems 1.3.6 on Ubuntu 10.4
But now I cannot start the dev_appserver.rb
anymore, it says:
=> Bundling gems
ERROR: While executing gem ... (RuntimeError)
Unknown command bundle
I also tried to do sudo gem update
and sudo gem update --system
again a few times but everything is up-to-date now. Here is a list of my gems: http://pastebin.com/cFaTCyF5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这有点麻烦,但我无法从您发送的内容中真正判断出发生了什么,但我知道最近有一些人在运行 gem update --system 后遇到了问题。找出您刚刚安装的版本
查找更新,应该如下所示: rubygems-update-1.5.0
然后尝试回滚您的 rubygems 版本
It's a bit of a hack around but I can't really tell what's going on properly from what you sent but I know a few people have been having problems after running gem update --system lately. Find out what version you've just installed with
Look for the update, should look something like this: rubygems-update-1.5.0
Then try rolling back your rubygems version
gem install --system 1.3.7
在我的案例中有效gem install --system 1.3.7
worked in my case