Fast-stemmer installation problems

后端 未结 1 1915
闹比i
闹比i 2021-01-06 01:35

I\'m having a hard time installing any of the ruby gems I want to because of a problem with fast-stemmer. I\'ve put the error I\'m getting below.



        
1条回答
  •  有刺的猬
    2021-01-06 01:50

    So, it appears that the problem I was having was caused by updating the last xCode, which in turn updated clang to 5.1, which in turn has broken a lot of ruby gems that haven't updated to reflect breaking changes in clang 5.1. I found this all on the Cloudspace blog.

    Their solution (for the moment -- the error says they will become hard errors in the future) is to put the following flag to get your compiler to ignore the issue:

    ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
    

    For example:

    sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install librarian-chef
    

    or to bundle:

    sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install
    

    0 讨论(0)
提交回复
热议问题