我正在尝试升级redmine。为了创建会话变量,在执行了几个步骤后,我必须运行bundle install以确保所有gem都被安装
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
C:/PROGRA~1/BITNAM~1/ruby/bin/ruby.exe extconf.rb
creating Makefile
make
gcc -I. -I/C/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/i386-mingw32 -I/C/PROGRA~1/BITN
AM~1/ruby/lib/ruby/1.8/i386-mingw32 -I. -DJSON_GENERATOR -g -O3 -DFD_SETSIZE=
256 -Wall -O0 -ggdb -c generator.c
/bin/sh: /usr/mingw/bin/gcc: Bad file number
make: *** [generator.o] Error 126
enter code here
Gem files will remain installed in C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/g
ems/json-1.8.1 for inspection.
Results logged to C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/json-1.8.1/ex
t/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
我无法在ruby中运行命令bundle install
答案 0 :(得分:2)
bundle update json
对我不起作用,
相反,我确实运行了以下命令。
bundle update
然后
bundle install
我正在运行Kali,在成功安装SNORT,PULLED PORK和BARNYARD2之后尝试安装SNORBY。 以上解决方案解决了问题
答案 1 :(得分:1)
尝试在您的gemfile中将JSON gem锁定到1.8.0并进行更新
gem 'json', '1.8.0'
然后运行
bundle update json