Rails 4捆绑更新错误与gem atomic 1.1.16

时间:2014-03-18 01:01:48

标签: ruby-on-rails-4 gem bundle atomic

Rails包更新在处理atomic gem v 1.1.16时仍然失败。已经来回搜索过网络以寻求解决方案。检查gcc --version:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-   dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

安装xcode命令行,运行gem系统更新,卸载以前的原子版本并尝试重新安装1.1.16。相同的结果:

...
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [atomic_reference.bundle] Error 1

make failed, exit code 2

有人有提示吗?提前谢谢。

更新

这些离我google groupsgithub到目前为止的解决方案最近。

似乎是一个尚未解决的osx Mavericks和/或Xcode问题。 但是修改后的bundle install提示至少让它运行完毕。

1 个答案:

答案 0 :(得分:0)

我想知道你使用的Rails和Ruby版本是否存在问题。

我使用Rails 4.0.2和RVM 1.25.16来管理ruby版本(目前有2.0.0p247和2.0.0-p353)。我是OS X Mavericks,版本10.9.1。

我最初安装了ruby 2.0.0p247,这仍然是终端的默认设置。但我后来安装了RVM ruby​​ 2.0.0p353。安装原子宝石时也遇到了错误,即使对于一个新项目也是如此。但是当我用rvm(rvm ruby​​-2.0.0-p353)切换到最新版本的ruby时,现在一切都正常安装。我不知道发生了什么或为什么要修复它。我希望这会有所帮助。