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

ruby – 安装Gherkin 2.1.5的故障排除

发布时间:2020-12-17 04:29:35 所属栏目:百科 来源:网络整理
导读:我正在尝试安装Gherkin 2.1.5,好吧,实际上它是 https://github.com/opencongress/opencongress的依赖.我在代码的根目录中使用bundle install来安装,大约有20-30个软件包已经安装好了,现在我被困在这个.我在跑步: Linux 3.2.0-27-generic #43-Ubuntu SMPLinu
我正在尝试安装Gherkin 2.1.5,好吧,实际上它是 https://github.com/opencongress/opencongress的依赖.我在代码的根目录中使用bundle install来安装,大约有20-30个软件包已经安装好了,现在我被困在这个.我在跑步:
Linux 3.2.0-27-generic #43-Ubuntu SMP
Linux Mint 13 Maya

一旦停止安装,这是输出.

---snip--(a bunch of usings)
Installing gherkin (2.1.5) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.8 extconf.rb 
checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -D_FORTIFY_SOURCE=2  -D_FORTIFY_SOURCE=2 -fPIC -fno-strict-aliasing -g -g -O2  -fPIC  -O0 -Wall -Werror  -c     gherkin_lexer_ar.c
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl: In function ‘CLexer_scan’:
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:198:29: error: the comparison will always evaluate as ‘true’ for the address of ‘raise_lexer_error’     will never be NULL [-Werror=address]
/Users/aslakhellesoy/scm/gherkin/tasks/../ragel/i18n/ar.c.rl:198:29: error: the comparison will always evaluate as ‘true’ for the address of ‘raise_lexer_error’     will never be NULL [-Werror=address]
cc1: all warnings being treated as errors
make: *** [gherkin_lexer_ar.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/gherkin-2.1.5 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/gherkin-2.1.5/ext/gherkin_lexer_ar/gem_make.out

我从来没有在ruby中编程,所以我对整个安装过程中的东西都有点脱节.我刚刚想出如何安装redcloth并认为我很好.谢谢你的建议.

解决方法

gem install gherkin -v’2.1.5′ – –with-cflags = -w

为我做了诀窍.

(编辑:李大同)

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

    推荐文章
      热点阅读