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

前端 未结 11 1603
醉酒成梦
醉酒成梦 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:22

    It's been a while and I've got similar error. An alternative to folks using bundler is to add the flag to the build configuration like below example:

    bundle config build. --with-cflags="-Wno-error=implicit-function-declaration"
    

    followed by

    bundle install
    

    Please note that you must replace above with the name of the actual gem that is throwing the error while building native extensions.

    I hope this becomes helpful to others that face similar issues in the future!

提交回复
热议问题