pivotal-sprout / sprout-wrap

Pivotal Labs uses this project with sprout, soloist and librarian-chef to build developer workstations
The Unlicense
157 stars 250 forks source link

can't compile JSON on Mavericks MBP Retina #38

Closed sweetleon closed 10 years ago

sweetleon commented 10 years ago
$ sudo bundle
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Using archive-tar-minitar (0.5.2)
Using awesome_print (1.1.0)
Using erubis (2.7.0)
Using highline (1.6.19)

Gem::Installer::ExtensionBuildError: 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.7.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.7.7), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.7'` succeeds before bundling.

I worked around this with the following commands which I learned from StackOverflow:

$ sudo bash
# ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install json -v 1.7.7

_Note_: this is not the latest version of the JSON gem.

sweetleon commented 10 years ago

Had to do the same thing for YAJL:

$ sudo bash
# ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install yajl-ruby -v '1.1.0'
hiremaga commented 10 years ago

Thanks for reporting this Lenny. Looks like a dupe of #36?

sweetleon commented 10 years ago

True. Let's close it.

cunnie commented 10 years ago

Closing. Thanks Lenny.