快速词干安装问题 [英] Fast-stemmer installation problems

查看:40
本文介绍了快速词干安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 fast-stemmer 的问题,我很难安装任何我想要的 ruby​​ gem.我已经把我得到的错误放在下面.

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.

Building native extensions.  This could take a while...
ERROR:  Error installing fast-stemmer:
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 porter.c
porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
  if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
            ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~
porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning
  if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--;
                      ^
               (                          )
1 warning generated.
compiling porter_wrap.c
linking shared-object stemmer.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: *** [stemmer.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/fast-stemmer-1.0.2/gem_make.out

我尝试解决的一些问题包括:更新 ruby​​ gems、更新 rvm、使用 ruby​​ 2.1.1、重新安装命令行工具.我在小牛队.

Some things I've tried to resolve the problem include: updating ruby gems, updating rvm, using ruby 2.1.1, re-installing command line tools. I'm on Mavericks.

如果有人可以帮助我,将不胜感激!

If anyone could help me out it'd be much appreciated!

推荐答案

所以,看来我遇到的问题是由更新最后一个 xCode 引起的,而后者又将 clang 更新为 5.1,而后者又坏了很多尚未更新以反映 clang 5.1 中的重大更改的红宝石宝石.我在 Cloudspace 博客.

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

例如:

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

或捆绑:

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

这篇关于快速词干安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆