gpt4 book ai didi

ruby - Fast-stemmer 安装问题

转载 作者:数据小太阳 更新时间:2023-10-29 07:13:35 24 4
gpt4 key购买 nike

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

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、重新安装命令行工具。我在小牛队。

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

最佳答案

所以,看来我遇到的问题是由更新最后一个 xCode 引起的,它又将 clang 更新为 5.1,这又破坏了许多尚未更新以反射(reflect) clang 中的重大变化的 ruby​​ gem 5.1.我在 Cloudspace blog 上找到了这一切.

他们的解决方案(目前——错误说他们将来会变成硬错误)是放置以下标志让你的编译器忽略这个问题:

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

关于ruby - Fast-stemmer 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22672677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com