Created
January 27, 2011 20:31
-
-
Save AndrewVos/799192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ gem install ncurses | |
Building native extensions. This could take a while... | |
ERROR: Error installing ncurses: | |
ERROR: Failed to build gem native extension. | |
/Users/andrewvos/.rvm/rubies/ruby-1.9.2-p0/bin/ruby 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()... yes | |
checking for slk_attr_on()... yes | |
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()... yes | |
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 | |
make | |
Makefile:165: warning: overriding commands for target `/Users/andrewvos/.rvm/gems/ruby-1.9.2-p0/gems/ncurses-0.9.1/lib' | |
Makefile:163: warning: ignoring old commands for target `/Users/andrewvos/.rvm/gems/ruby-1.9.2-p0/gems/ncurses-0.9.1/lib' | |
gcc -I. -I/Users/andrewvos/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/andrewvos/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Users/andrewvos/.rvm/rubies/ruby-1.9.2-p0/include/ruby-1.9.1 -I. -DHAVE_UNISTD_H -DHAVE_NCURSES_H -DHAVE_NEWSCR -DHAVE_TABSIZE -DHAVE_ESCDELAY -DHAVE_KEYBOUND -DHAVE_CURSES_VERSION -DHAVE_TIGETSTR -DHAVE_GETWIN -DHAVE_PUTWIN -DHAVE_UNGETMOUSE -DHAVE_MOUSEMASK -DHAVE_WENCLOSE -DHAVE_MOUSEINTERVAL -DHAVE_WMOUSE_TRAFO -DHAVE_MCPRINT -DHAVE_HAS_KEY -DHAVE_DELSCREEN -DHAVE_DEFINE_KEY -DHAVE_KEYOK -DHAVE_RESIZETERM -DHAVE_USE_DEFAULT_COLORS -DHAVE_USE_EXTENDED_NAMES -DHAVE_WRESIZE -DHAVE_ATTR_ON -DHAVE_ATTR_OFF -DHAVE_ATTR_SET -DHAVE_CHGAT -DHAVE_COLOR_SET -DHAVE_FILTER -DHAVE_INTRFLUSH -DHAVE_MVCHGAT -DHAVE_MVHLINE -DHAVE_MVVLINE -DHAVE_MVWCHGAT -DHAVE_MVWHLINE -DHAVE_MVWVLINE -DHAVE_NOQIFLUSH -DHAVE_PUTP -DHAVE_QIFLUSH -DHAVE_SCR_DUMP -DHAVE_SCR_INIT -DHAVE_SCR_RESTORE -DHAVE_SCR_SET -DHAVE_SLK_ATTR_OFF -DHAVE_SLK_ATTR_ON -DHAVE_SLK_ATTR -DHAVE_SLK_ATTR_SET -DHAVE_SLK_COLOR -DHAVE_TIGETFLAG -DHAVE_TIGETNUM -DHAVE_USE_ENV -DHAVE_VIDATTR -DHAVE_VID_ATTR -DHAVE_WATTR_ON -DHAVE_WATTR_OFF -DHAVE_WATTR_SET -DHAVE_WCHGAT -DHAVE_WCOLOR_SET -DHAVE_GETATTRS -DHAVE_ASSUME_DEFAULT_COLORS -DHAVE_ATTR_GET -DHAVE_PANEL_H -DHAVE_FORM_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -g -o form_wrap.o -c form_wrap.c | |
form_wrap.c: In function ‘rbncurs_m_new_form’: | |
form_wrap.c:395: error: ‘struct RArray’ has no member named ‘len’ | |
form_wrap.c: In function ‘rbncurs_c_set_field_type’: | |
form_wrap.c:619: error: ‘struct RArray’ has no member named ‘len’ | |
form_wrap.c:624: warning: assignment makes pointer from integer without a cast | |
form_wrap.c: In function ‘rbncurs_c_set_field_fore’: | |
form_wrap.c:696: warning: implicit conversion shortens 64-bit value into a 32-bit value | |
form_wrap.c: In function ‘rbncurs_c_set_field_back’: | |
form_wrap.c:710: warning: implicit conversion shortens 64-bit value into a 32-bit value | |
form_wrap.c: In function ‘rbncurs_c_set_field_buffer’: | |
form_wrap.c:741: warning: passing argument 3 of ‘set_field_buffer’ makes pointer from integer without a cast | |
form_wrap.c: In function ‘rbncurs_c_set_form_fields’: | |
form_wrap.c:778: error: ‘struct RArray’ has no member named ‘len’ | |
form_wrap.c: In function ‘rbncurs_c_form_request_by_name’: | |
form_wrap.c:1051: warning: passing argument 1 of ‘form_request_by_name’ makes pointer from integer without a cast | |
form_wrap.c: In function ‘make_arg’: | |
form_wrap.c:1126: error: ‘struct RArray’ has no member named ‘len’ | |
form_wrap.c:1130: warning: format not a string literal and no format arguments | |
make: *** [form_wrap.o] Error 1 |
Hmm not sure. I use RVM and homebrew if that's any help.
Yeah, I use RVM too but not homebrew.
I'm getting this error on crunchbang linux,
but not on the the Mac where don't use RVM.
I this page look at the last comment:
http://stackoverflow.com/questions/2729865/fix-an-external-dependency-of-a-ruby-gem
Ken Bloom says:
"His compile errors refer to structs in the Ruby interpreter, not in the ncurses library."
Do you still get this error?
Yeah I did get it installed. Can't remember what I was doing wrong at the time. This was on OS X by the way.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Andrew,
I'm getting the same error..
Did you figure out the problem?
Thanx, Goran