首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gherkin 2.1.5安装故障排除

Gherkin 2.1.5安装故障排除
EN

Stack Overflow用户
提问于 2012-08-30 08:21:38
回答 1查看 1.7K关注 0票数 7

我正在尝试安装小黄瓜2.1.5,实际上它依赖于https://github.com/opencongress/opencongress。我在安装代码的根目录中使用bundle install,大约安装了20-30个包,现在我被卡住了。我正在运行:

代码语言:javascript
复制
Linux 3.2.0-27-generic #43-Ubuntu SMP
Linux Mint 13 Maya

这是它停止安装后的输出。

代码语言:javascript
复制
---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,并认为我做得很好。谢谢你的建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-29 19:26:44

gem install gherkin -v '2.1.5' -- --with-cflags=-w

帮了我大忙。

票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12188288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档