Установка Redmine. Я пробовал,Gem :: Ext :: BuildError: ERROR: Не удалось создать собственное расширение gem. на CenOS 6.5
bundle install --without development test postgresql sqlite
, но погрешность.
Gem :: Ext :: BuildError: ERROR: Не удалось создать самородное расширение gem.
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20161228-21055-1dxe9y9.rb extconf.rb
creating Makefile
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861: error: ‘rb_cFixnum’ undeclared (first use in this
function)
generator.c:861: error: (Each undeclared identifier is reported only
once
generator.c:861: error: for each function it appears in.)
generator.c:863: error: ‘rb_cBignum’ undeclared (first use in this
function)
At top level:
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option
"-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option
"-Wno-parentheses-equality"
cc1: warning: unrecognized command line option
"-Wno-tautological-compare"
make: *** [generator.o] error 1
make failed, exit code 2
Gem files will remain installed in
/usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to
/usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler
cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before
bundling.
Итак, я попытался gem install json -v '1.8.3
, но я не мог решить.
Не могли бы вы просто прочитать эту проблему?
я вижу ... Это означает, что рубин 2,4 не поддерживает JSON 1.8.3. Затем, есть ли информация, что стабильная (?) gems list следующая версия ruby? Я хочу знать, как искать ключевое слово для себя. – Johnson
Ну, каждый драгоценный камень реализует свои собственные механизмы совместимости. Конечно, вам нужно прочитать документацию, попробовать или спросить у сопровождающих.Вы также можете использовать google для «[gemname] ruby 2.4" или "[gemname] [сообщение об ошибке]". Что касается json gem, они поддерживают Ruby 2.4 [с json 2.0] (https://github.com/flori/json/blob/master/CHANGES.md#2015-09-11-200). Необходимые изменения [были отправлены обратно в ветку 1.8] (https://github.com/flori/json/issues/308), но еще не выпущены. –