加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – 快速干扰器安装问题

发布时间:2020-12-17 03:38:04 所属栏目:百科 来源:网络整理
导读:由于快速干扰器的问题,我很难安装我想要的任何ruby宝石.我把错误放在了下面. Building native extensions. This could take a while...ERROR: Error installing fast-stemmer:ERROR: Failed to build gem native extension./System/Library/Frameworks/Ruby.
由于快速干扰器的问题,我很难安装我想要的任何ruby宝石.我把错误放在了下面.

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,这反过来打破了许多未更新的ruby gem以反映clang 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读