【发布时间】: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