【问题标题】:osx rails intall error: unknown argument: '-multiply_definedsuppress'osx rails 安装错误:未知参数:'-multiply defined suppress'
【发布时间】:2014-09-06 08:40:31
【问题描述】:

我正在尝试在干净的 os x mavericks 机器上安装 rails。由于某种原因,它无法正常工作

$ sudo gem install rails
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.bundle
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: *** [generator.bundle] Error 1

这里有更多细节:

$ rvm -v
rvm 1.25.28 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
$ bundle -v
Bundler version 1.6.3

我还需要安装更多的东西吗?我真的不明白错误

【问题讨论】:

  • 你有什么版本的xcode?​​span>
  • xcode-选择版本 2333

标签: ruby-on-rails ruby macos rvm osx-mavericks


【解决方案1】:

我发现了这个小魔法,它安装得很好:

curl https://gist.githubusercontent.com/Paulche/9713531/raw/1e57fbb440d36ca5607d1739cc6151f373b234b6/gistfile1.txt | sudo patch /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb

感谢这篇帖子:Ruby Gem install Json fails on Mavericks and Xcode 5.1 - unknown argument: '-multiply_definedsuppress'

【讨论】:

    猜你喜欢
    • 2013-08-26
    • 2014-04-18
    • 1970-01-01
    • 2023-03-17
    • 2012-01-24
    • 1970-01-01
    • 2015-06-05
    • 2015-05-04
    • 2014-04-14
    相关资源
    最近更新 更多