作者shapa5566 (瞎趴哥)
看板Ruby
标题[问题] gem install rails
时间Sat Apr 12 00:56:02 2014
版上大大好
我是刚学习ruby on 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="
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
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
也google过 还是不知道怎样解决这个问题
想请教大大如何解决?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.42.175.68
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Ruby/M.1397235364.A.BD4.html