码迷,mamicode.com
首页 > 其他好文 > 详细

编译Ruby2.0 问题解决

时间:2016-06-24 10:29:09      阅读:143      评论:0      收藏: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 问题解决

标签:

原文地址:http://www.cnblogs.com/ruiy/p/5613127.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!