Ruby Gem install Json fails on Mavericks and Xcode 5.1 - unknown argument: '-multiply_definedsuppress'

前端 未结 11 1574
醉酒成梦
醉酒成梦 2020-11-22 03:39

I was trying run gem install json and got the following error

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Framewo         


        
11条回答
  •  温柔的废话
    2020-11-22 04:39

    @Muncken has already provided an answer to install gem one by one:

    ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName
    

    Base on Muncken's answer, I've tried that it also works when using bundle install

    ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install
    

提交回复
热议问题