[問題] gem install rails

看板Ruby作者 (瞎趴哥)時間10年前 (2014/04/12 00:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
版上大大好 我是剛學習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://www.ptt.cc/bbs/Ruby/M.1397235364.A.BD4.html
文章代碼(AID): #1JI1walK (Ruby)
討論串 (同標題文章)
文章代碼(AID): #1JI1walK (Ruby)