ruby-on-rails - 安装 atomic (1.1.16) 时出错,Bundler 无法继续

标签 ruby-on-rails

我正在尝试创建一个新的 Rails 应用程序,但在捆绑时出现此错误...

这是我第一次遇到这个错误!!

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p448/gems/atomic-1.1.16 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p448/gems/atomic-1.1.16/ext/gem_make.out

An error occurred while installing atomic (1.1.16), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.16'` succeeds before bundling.

我的rails版本是Rails 4.0.1

我的操作系统是 mac 10.9 mavericks

最佳答案

试试这个来自 here 的解决方案:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install atomic -v '1.1.16'

或者如果你想导出它:

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
gem install atomic -v '1.1.16'

关于ruby-on-rails - 安装 atomic (1.1.16) 时出错,Bundler 无法继续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22670712/

相关文章:

sql - Rails 包含有条件

ruby-on-rails - Ruby on Rails - 字段设置为零

jquery - Rails 在使用 Ajax 时创建重复记录并进行两次调用以删除相同记录

mysql - 使用现有的 Mysql 数据库构建 Ruby on Rails 应用程序

mysql - MySql 中每秒的查询次数真的很重要吗?

html - 循环复制内容

ruby-on-rails - Rspec 发布错误数量的参数(给定 2,预期 1)请求规范时间相关

javascript - JS 类方法未执行(Rails active_storage)

ruby-on-rails - 如何在 Assets 管道中包含 ActionView 助手?

ruby-on-rails - 如何通过SVN提供软件drop?