TL;DR:
To install softcover on mavericks use the Following command line string:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install softcover
Long Version:
I stumbled over softcover.io and immediately tried to install on my machine, which is running OSX 10.9.2 (Mavericks).
I used:
$ sudo gem install softcover
to start the softcover installation. To my disappointment the installation pretty much crashed right from the start:
sudo gem install softcover Building native extensions. This could take a while... ERROR: Error installing softcover: 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 /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/json-1.8.1/gem_make.out georgs-imac-2:~ shorshe$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future sudo gem install softcover Building native extensions. This could take a while... ERROR: Error installing softcover: 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 /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/json-1.8.1/gem_make.out
Ruby gem installs seem to be brocken in mavericks … what a shame.
What got me thinking though was the line:
-Wunused-command-line-argument-hard-error-in-future
»hard error in future…« there has to be a way to make it go away.
I found the solution on this site:
So, if installing gem gives you troubles right now use the string »ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future« before the gem command.
Long story short. To install softcover.io on mavericks use the following command line string:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install softcover