安装atomic(1.1.16)时发生错误,Bundler无法继续

时间:2014-03-26 19:02:42

标签: 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

2 个答案:

答案 0 :(得分:4)

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'

答案 1 :(得分:0)