Git Product home page Git Product logo

Comments (9)

romanbsd avatar romanbsd commented on August 15, 2024

No idea, actually. Works fine here.

from fast-stemmer.

parkr avatar parkr commented on August 15, 2024

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?

from fast-stemmer.

thepatrick avatar thepatrick commented on August 15, 2024
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install fast-stemmer

Works around this issue for now.

from fast-stemmer.

Blaisorblade avatar Blaisorblade commented on August 15, 2024

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/

from fast-stemmer.

Blaisorblade avatar Blaisorblade commented on August 15, 2024

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:

  1. Correct:

    sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install fast-stemmer

  2. Installation without sudo:

    ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

  3. This fails with the same error:

    ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" sudo gem install fast-stemmer

from fast-stemmer.

timothyekl avatar timothyekl commented on August 15, 2024

@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

from fast-stemmer.

Blaisorblade avatar Blaisorblade commented on August 15, 2024

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!

from fast-stemmer.

kommi10 avatar kommi10 commented on August 15, 2024

"try preserving the environment by passing the -E option to sudo, e.g.:"

That worked for me, thanks @lithium3141!

from fast-stemmer.

siegfang avatar siegfang commented on August 15, 2024

Now, you can just update to OS X 10.9.3 to fix this problem!

from fast-stemmer.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.