SORU
12 Mart 2014, ÇARŞAMBA


Ruby Gem Mavericks başarısız ve 5.1 - bilinmeyen değişken Güncellemelerinden Json yükleyin: '-multiply_definedsuppress'

Çalıştırmak gem install json çalışıyordum ve aşağıdaki hata var

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

Kullanıyorum:

Os X: 10.9.2
Böyle büyük mükafat: sürüm İnşa 5B130a 5.1
Komut Satırı Araçları (YFC): 5.1.0.0.1.1393561416
Ruby: ruby 2.0.0p247 (2013-06-27 revizyon 41674) [evrensel.x86_64-darwin13]
Ruby Gem: 2.2.2
GCC: 4.2.1 Apple LLVM sürüm 5.1 (çınlama-503.0.38) (LLVM 3.4 svn bağlı olarak)

CEVAP
22 Mart 2014, CUMARTESİ


Bunu düzeltmek için oyunu

curl https://gist.githubusercontent.com/Paulche/9713531/raw/1e57fbb440d36ca5607d1739cc6151f373b234b6/gistfile1.txt | sudo patch /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Caina Mondo Zine

    Caina Mondo

    13 EKİM 2007
  • Matt Stokes

    Matt Stokes

    22 Ocak 2008
  • pleated-jeans

    pleated-jean

    6 HAZİRAN 2013