Closed parkr closed 9 years ago
No idea, actually. Works fine here.
Yeah it works fine for me, too. We've just seen about 8 or so people in the last week have this problem. Do you set a unused-command-line-argument-hard-error-in-future
flag anywhere?
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install fast-stemmer
Works around this issue for now.
Do you set a unused-command-line-argument-hard-error-in-future flag anywhere?
That's a default — EDIT: for newer clang.
https://langui.sh/2014/03/10/wunused-command-line-argument-hard-error-in-future-is-a-harsh-mistress/
A pitfall in your workaround: installation requires sudo for me, on OS X (see 2. below), and the option must be specified "inside" sudo (see 1.), not outside (see 3.), because sudo removes environment variables by default for security reasons:
Correct:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install fast-stemmer
Installation without sudo:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
This fails with the same error:
ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" sudo gem install fast-stemmer
@Blaisorblade: try preserving the environment by passing the -E
option to sudo
, e.g.:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future sudo -E gem install fast-stemmer
That works, as well as my solution 1. But to clarify: my comment is for reference to other people finding this (if any), I already found a workaround. Thanks a lot anyway!
"try preserving the environment by passing the -E option to sudo, e.g.:"
That worked for me, thanks @lithium3141!
Now, you can just update to OS X 10.9.3 to fix this problem!
Compilation error on Mac OS X with Xcode 5.1 seems to be failing more than usual. Have you seen this? Full
gem_make.out
dumps in the issues below:Ref: https://github.com/jekyll/jekyll/issues/2125 & related issues