编译Ruby2.0 问题解决
compiling readline.c
readline.c: In function ‘Init_readline’:
readline.c:1886:26: error: ‘Function’ undeclared (first use in this function)
???? rl_pre_input_hook = (Function *)readline_pre_input_hook;
????????????????????????? ^
readline.c:1886:26: note: each undeclared identifier is reported only once for e??????????????????????????????????????????????????????????????????????????????????????? ach function it appears in
readline.c:1886:36: error: expected expression before ‘)’ token
???? rl_pre_input_hook = (Function *)readline_pre_input_hook;
??????????????????????????????????? ^
readline.c: At top level:
readline.c:530:1: warning: ‘readline_pre_input_hook’ defined but not used [-Wunu??????????????????????????????????????????????????????????????????????????????????????? sed-function]
?readline_pre_input_hook(void)
?^
make[2]: *** [readline.o] Error 1
make[2]: Leaving directory `/tmp/ruby/ruby-2.0.0-p353/ext/readline'
make[1]: *** [ext/readline/all] Error 2
?
總結
以上是生活随笔為你收集整理的编译Ruby2.0 问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: javascript类型系统——正则表达
- 下一篇: Docker-删除untagged do