gpt4 book ai didi

ruby - 安装 Gherkin 2.1.5 的故障排除

转载 作者:IT王子 更新时间:2023-10-29 00:24:10 25 4
gpt4 key购买 nike

我正在尝试安装 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 安装小 cucumber -v '2.1.5' -- --with-cflags=-w

对我有用。

关于ruby - 安装 Gherkin 2.1.5 的故障排除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12188288/

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