Не удается установить ncurses gem

Я пытаюсь установить жемчуг ncurses, но когда я это сделаю, я получаю этот результат

yamboy1@computer:~/ncurses$ gem install ncurses Building native extensions. This could take a while... ERROR: Error installing ncurses: ERROR: Failed to build gem native extension. current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 /usr/share/rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20171213-5000-1006yjr.rb extconf.rb checking for unistd.h... yes checking for ncurses.h... yes checking for wmove() in -lncurses... yes checking for newscr()... yes checking for TABSIZE()... yes checking for ESCDELAY()... yes checking for keybound()... yes checking for curses_version()... yes checking for tigetstr()... yes checking for getwin()... yes checking for putwin()... yes checking for ungetmouse()... yes checking for mousemask()... yes checking for wenclose()... yes checking for mouseinterval()... yes checking for wmouse_trafo()... yes checking for mcprint()... yes checking for has_key()... yes checking for delscreen()... yes checking for define_key()... yes checking for keyok()... yes checking for resizeterm()... yes checking for use_default_colors()... yes checking for use_extended_names()... yes checking for wresize()... yes checking for attr_on()... yes checking for attr_off()... yes checking for attr_set()... yes checking for chgat()... yes checking for color_set()... yes checking for filter()... yes checking for intrflush()... yes checking for mvchgat()... yes checking for mvhline()... yes checking for mvvline()... yes checking for mvwchgat()... yes checking for mvwhline()... yes checking for mvwvline()... yes checking for noqiflush()... yes checking for putp()... yes checking for qiflush()... yes checking for scr_dump()... yes checking for scr_init()... yes checking for scr_restore()... yes checking for scr_set()... yes checking for slk_attr_off()... no checking for slk_attr_on()... no checking for slk_attr()... yes checking for slk_attr_set()... yes checking for slk_color()... yes checking for tigetflag()... yes checking for tigetnum()... yes checking for use_env()... yes checking for vidattr()... yes checking for vid_attr()... no checking for wattr_on()... yes checking for wattr_off()... yes checking for wattr_set()... yes checking for wchgat()... yes checking for wcolor_set()... yes checking for getattrs()... yes checking which debugging functions to wrap... checking for _tracef()... no checking for _tracedump()... no checking for _nc_tracebits()... no checking for _traceattr()... no checking for _traceattr2()... no checking for _tracechar()... no checking for _tracechtype()... no checking for _tracechtype2()... no checking for _tracemouse()... no checking for other functions that appeared after ncurses version 5.0... checking for assume_default_colors()... yes checking for attr_get()... yes checking for the panel library... checking for panel.h... yes checking for panel_hidden() in -lpanel... yes checking for the form library... checking for form.h... yes checking for new_form() in -lform... yes creating Makefile current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 make "DESTDIR=" clean current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 make "DESTDIR=" compiling form_wrap.c form_wrap.c: In function ‘rbncurs_m_new_form’: form_wrap.c:395:34: error: ‘struct RArray’ has no member named ‘len’ long n = RARRAY(rb_field_array)->len; ^~ form_wrap.c: In function ‘rbncurs_c_set_field_type’: form_wrap.c:619:23: error: ‘struct RArray’ has no member named ‘len’ int n = RARRAY(arg3)->len; ^~ form_wrap.c:624:15: warning: implicit declaration of function ‘STR2CSTR’ [-Wimplicit-function-declaration] list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i)); ^~~~~~~~ form_wrap.c:624:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i)); ^ In file included from /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby.h:33:0, from form_wrap.h:27, from form_wrap.c:28: form_wrap.c: In function ‘rbncurs_c_set_field_buffer’: form_wrap.c:741:56: warning: passing argument 3 of ‘set_field_buffer’ makes pointer from integyamboy1@purple-laptop:~/ncurses$ gem install ncurses Building native extensions. This could take a while... ERROR: Error installing ncurses: ERROR: Failed to build gem native extension. current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 /usr/share/rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20171213-5000-1006yjr.rb extconf.rb checking for unistd.h... yes checking for ncurses.h... yes checking for wmove() in -lncurses... yes checking for newscr()... yes checking for TABSIZE()... yes checking for ESCDELAY()... yes checking for keybound()... yes checking for curses_version()... yes checking for tigetstr()... yes checking for getwin()... yes checking for putwin()... yes checking for ungetmouse()... yes checking for mousemask()... yes checking for wenclose()... yes checking for mouseinterval()... yes checking for wmouse_trafo()... yes checking for mcprint()... yes checking for has_key()... yes checking for delscreen()... yes checking for define_key()... yes checking for keyok()... yes checking for resizeterm()... yes checking for use_default_colors()... yes checking for use_extended_names()... yes checking for wresize()... yes checking for attr_on()... yes checking for attr_off()... yes checking for attr_set()... yes checking for chgat()... yes checking for color_set()... yes checking for filter()... yes checking for intrflush()... yes checking for mvchgat()... yes checking for mvhline()... yes checking for mvvline()... yes checking for mvwchgat()... yes checking for mvwhline()... yes checking for mvwvline()... yes checking for noqiflush()... yes checking for putp()... yes checking for qiflush()... yes checking for scr_dump()... yes checking for scr_init()... yes checking for scr_restore()... yes checking for scr_set()... yes checking for slk_attr_off()... no checking for slk_attr_on()... no checking for slk_attr()... yes checking for slk_attr_set()... yes checking for slk_color()... yes checking for tigetflag()... yes checking for tigetnum()... yes checking for use_env()... yes checking for vidattr()... yes checking for vid_attr()... no checking for wattr_on()... yes checking for wattr_off()... yes checking for wattr_set()... yes checking for wchgat()... yes checking for wcolor_set()... yes checking for getattrs()... yes checking which debugging functions to wrap... checking for _tracef()... no checking for _tracedump()... no checking for _nc_tracebits()... no checking for _traceattr()... no checking for _traceattr2()... no checking for _tracechar()... no checking for _tracechtype()... no checking for _tracechtype2()... no checking for _tracemouse()... no checking for other functions that appeared after ncurses version 5.0... checking for assume_default_colors()... yes checking for attr_get()... yes checking for the panel library... checking for panel.h... yes checking for panel_hidden() in -lpanel... yes checking for the form library... checking for form.h... yes checking for new_form() in -lform... yes creating Makefile current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 make "DESTDIR=" clean current directory: /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 make "DESTDIR=" compiling form_wrap.c form_wrap.c: In function ‘rbncurs_m_new_form’: form_wrap.c:395:34: error: ‘struct RArray’ has no member named ‘len’ long n = RARRAY(rb_field_array)->len; ^~ form_wrap.c: In function ‘rbncurs_c_set_field_type’: form_wrap.c:619:23: error: ‘struct RArray’ has no member named ‘len’ int n = RARRAY(arg3)->len; ^~ form_wrap.c:624:15: warning: implicit declaration of function ‘STR2CSTR’ [-Wimplicit-function-declaration] list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i)); ^~~~~~~~ form_wrap.c:624:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion] list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i)); ^ In file included from /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby.h:33:0, from form_wrap.h:27, from form_wrap.c:28: form_wrap.c: In function ‘rbncurs_c_set_field_buffer’: form_wrap.c:741:56: warning: passing argument 3 of ‘set_field_buffer’ makes pointer from integer without a cast [-Wint-conversion] return INT2NUM(set_field_buffer(field, NUM2INT(buf), STR2CSTR(value))); ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:231:33: note: in definition of macro ‘RB_INT2FIX’ #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG) ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:1538:20: note: in expansion of macro ‘RB_INT2NUM’ #define INT2NUM(x) RB_INT2NUM(x) ^~~~~~~~~~ form_wrap.c:741:10: note: in expansion of macro ‘INT2NUM’ return INT2NUM(set_field_buffer(field, NUM2INT(buf), STR2CSTR(value))); ^~~~~~~ In file included from form_wrap.h:26:0, from form_wrap.c:28: /usr/include/form.h:344:28: note: expected ‘const char *’ but argument is of type ‘int’ extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *); ^~~~~~~~~~~~~~~~ form_wrap.c: In function ‘rbncurs_c_set_form_fields’: form_wrap.c:778:34: error: ‘struct RArray’ has no member named ‘len’ long n = RARRAY(rb_field_array)->len; ^~ In file included from /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby.h:33:0, from form_wrap.h:27, from form_wrap.c:28: form_wrap.c: In function ‘rbncurs_c_form_request_by_name’: form_wrap.c:1051:39: warning: passing argument 1 of ‘form_request_by_name’ makes pointer from integer without a cast [-Wint-conversion] return INT2NUM(form_request_by_name(STR2CSTR(name))); ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:231:33: note: in definition of macro ‘RB_INT2FIX’ #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG) ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:1538:20: note: in expansion of macro ‘RB_INT2NUM’ #define INT2NUM(x) RB_INT2NUM(x) ^~~~~~~~~~ form_wrap.c:1051:10: note: in expansion of macro ‘INT2NUM’ return INT2NUM(form_request_by_name(STR2CSTR(name))); ^~~~~~~ In file included from form_wrap.h:26:0, from form_wrap.c:28: /usr/include/form.h:409:28: note: expected ‘const char *’ but argument is of type ‘int’ extern NCURSES_EXPORT(int) form_request_by_name (const char *); ^~~~~~~~~~~~~~~~~~~~ form_wrap.c: In function ‘make_arg’: form_wrap.c:1126:38: error: ‘struct RArray’ has no member named ‘len’ if (NUM2INT(argc)-1 != RARRAY(args)->len) { ^~ form_wrap.c:1130:28: warning: format not a string literal and no format arguments [-Wformat-security] rb_raise(rb_eArgError, msg); ^~~ form_wrap.c: 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’ Makefile:248: recipe for target 'form_wrap.o' failed make: *** [form_wrap.o] Error 1 make failed, exit code 2 Gem files will remain installed in /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 for inspection. Results logged to /home/yamboy1/.rvm/gems/ruby-2.4.1/extensions/x86_64-linux/2.4.0/ncurses-0.9.1/gem_make.out er without a cast [-Wint-conversion] return INT2NUM(set_field_buffer(field, NUM2INT(buf), STR2CSTR(value))); ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:231:33: note: in definition of macro ‘RB_INT2FIX’ #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG) ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:1538:20: note: in expansion of macro ‘RB_INT2NUM’ #define INT2NUM(x) RB_INT2NUM(x) ^~~~~~~~~~ form_wrap.c:741:10: note: in expansion of macro ‘INT2NUM’ return INT2NUM(set_field_buffer(field, NUM2INT(buf), STR2CSTR(value))); ^~~~~~~ In file included from form_wrap.h:26:0, from form_wrap.c:28: /usr/include/form.h:344:28: note: expected ‘const char *’ but argument is of type ‘int’ extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *); ^~~~~~~~~~~~~~~~ form_wrap.c: In function ‘rbncurs_c_set_form_fields’: form_wrap.c:778:34: error: ‘struct RArray’ has no member named ‘len’ long n = RARRAY(rb_field_array)->len; ^~ In file included from /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby.h:33:0, from form_wrap.h:27, from form_wrap.c:28: form_wrap.c: In function ‘rbncurs_c_form_request_by_name’: form_wrap.c:1051:39: warning: passing argument 1 of ‘form_request_by_name’ makes pointer from integer without a cast [-Wint-conversion] return INT2NUM(form_request_by_name(STR2CSTR(name))); ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:231:33: note: in definition of macro ‘RB_INT2FIX’ #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG) ^ /usr/share/rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:1538:20: note: in expansion of macro ‘RB_INT2NUM’ #define INT2NUM(x) RB_INT2NUM(x) ^~~~~~~~~~ form_wrap.c:1051:10: note: in expansion of macro ‘INT2NUM’ return INT2NUM(form_request_by_name(STR2CSTR(name))); ^~~~~~~ In file included from form_wrap.h:26:0, from form_wrap.c:28: /usr/include/form.h:409:28: note: expected ‘const char *’ but argument is of type ‘int’ extern NCURSES_EXPORT(int) form_request_by_name (const char *); ^~~~~~~~~~~~~~~~~~~~ form_wrap.c: In function ‘make_arg’: form_wrap.c:1126:38: error: ‘struct RArray’ has no member named ‘len’ if (NUM2INT(argc)-1 != RARRAY(args)->len) { ^~ form_wrap.c:1130:28: warning: format not a string literal and no format arguments [-Wformat-security] rb_raise(rb_eArgError, msg); ^~~ form_wrap.c: 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’ Makefile:248: recipe for target 'form_wrap.o' failed make: *** [form_wrap.o] Error 1 make failed, exit code 2 Gem files will remain installed in /home/yamboy1/.rvm/gems/ruby-2.4.1/gems/ncurses-0.9.1 for inspection. Results logged to /home/yamboy1/.rvm/gems/ruby-2.4.1/extensions/x86_64-linux/2.4.0/ncurses-0.9.1/gem_make.out

Что не так и как я могу установить это правильно?

0
задан 13 December 2017 в 06:05

0 ответов

Другие вопросы по тегам:

Похожие вопросы: