无法激活[“instagram-0.8”]的multi_json(〜> 0.0.5,运行时),已激活[]的multi_json-1.0.3
我正在使用 Rails 制作 Instagram 应用程序,但每次启动应用程序时都会收到此错误:
无法为[“instagram-0.8”]激活multi_json(~> 0.0.5,运行时), 已为 [] 激活 multi_json-1.0.3
我的rails版本是3.0.4并且instagram gem已经安装(gem install instagram)。我做错了什么?
提前致谢!
I am making an instagram application using rails, but I keep getting this error every time I start my application:
can't activate multi_json (~> 0.0.5, runtime) for ["instagram-0.8"],
already activated multi_json-1.0.3 for []
My rails version is 3.0.4 and instagram gem has been installed (gem install instagram). What am i doing wrong?
Thanx in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用捆绑器来管理依赖项,而不是直接使用 rubygems。
如果您使用捆绑器,则使用
bundle exec
执行脚本,例如bundle exec rspec spec/
。Bundler 会为您处理所有这些问题。但是,您可能必须卸载手动安装的 gem,才能消除此错误。
You should use bundler to manage your dependencies, rather than using rubygems directly.
If you use bundler, then execute your scripts with
bundle exec <usual command here>
, for example,bundle exec rspec spec/
.Bundler deals with all these issues for you. You may have to uninstall the gems you have installed manually in order to get this error to go away, however.