中运行命令束安装
我正在尝试升级红色敏。为了创建会话变量,在遵循了几个步骤之后,我必须运行捆绑包的安装,以确保所有宝石都已插入
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 update json
对我不起作用,
相反,我确实运行了以下命令。
bundle update
,然后
bundle install
我正在运行一个kali,在成功安装了蛇,拉猪肉和barnyard2后,试图安装Snorby。上面解决方案解决了问题
尝试将JSON GEM锁定到您的gemfile中的1.8.0并进行更新
gem 'json', '1.8.0'
然后运行
bundle update json