如何使捆绑程序识别已安装的路缘宝石?
我已使用 sudo env ARCHFLAGS="-arch x86_64" gem installurb
在 Mac OS X 上成功安装了 curb
gem,但在尝试运行 bundle install< /code> 我仍然收到此错误:
Installing curb (0.7.16) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
我做了一些挖掘,看起来 feedzirra
需要 gem(它没有在 Gemfile 中列出)。我尝试将 gem 添加到 Gemfile 并将其指向 vendor/gems
但这没有帮助。
任何帮助将不胜感激。另外,如果需要更多说明,我们深表歉意。这是我的第一个问题,我对 Ruby on Rails 还很陌生。如有必要,我很乐意提供更多详细信息。
I've successfully installed the curb
gem on Mac OS X using sudo env ARCHFLAGS="-arch x86_64" gem install curb
but when trying to run bundle install
I still get this error:
Installing curb (0.7.16) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
I've done some digging and it looks like feedzirra
is requiring the gem (it's not listed in the Gemfile). I've tried adding the gem to the Gemfile and pointing it to vendor/gems
but that didn't help.
Any help would be greatly appreciated. Also, sorry if there's more clarification needed. This is my first question and I'm fairly new to Ruby on Rails. I'll be glad to provide more details if necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
显然它需要对curl的SSL支持,因为我也遇到了同样的错误并修复了它:
您可能想尝试标准的“gem安装遏制”,看看它在“捆绑安装”之前是否有效。
Apparently it needs SSL support for curl, as I had the same error and fixed it with:
You might want to try a standard "gem install curb" to see if that works before "bundle install".
在您的 Gemfile 中:
只要您安装 gem 的位置即可。
in your Gemfile:
As long as that's where you installed the gem to.