首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Ruby Gem在Mavericks和Xcode 5.1上安装Json失败-未知参数:'-multiply_definedsuppress‘

Ruby Gem在Mavericks和Xcode 5.1上安装Json失败-未知参数:'-multiply_definedsuppress‘
EN

Stack Overflow用户
提问于 2014-03-12 21:19:59
回答 9查看 50.5K关注 0票数 105

我尝试运行gem install json,得到以下错误

Gem::Ext::BuildError: 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

make failed, exit code 2

Gem files will remain installed in /opt/boxen/repo/.bundle/ruby/2.0.0/gems/json-1.8.0 for inspection.
Results logged to /opt/boxen/repo/.bundle/ruby/2.0.0/extensions/universal-darwin-13/2.0.0/json-1.8.0/gem_make.out

我使用的是:

Os X: 10.9.2

Xcode: 5.1内部版本5B130a

命令行工具(CLT):5.1.0.0.1.1393561416

Ruby: ruby 2.0.0p247 (41674-06-27修订版)通用.x86_64-darwin13

Ruby Gem: 2.2.2

GCC: 4.2.1 Apple LLVM 5.1版(clang-503.0.38) (基于LLVM 3.4svn)

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22352838

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档