我使用ruby-install ruby 2.0.0
compiling readline.c
readline.c:1886:26: error: use of undeclared identifier 'Function'
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
readline.c:1886:36: error: expected expression
rl_pre_input_hook = (Function *)readline_pre_input_hook;
^
2 errors generated.
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make: *** [build-ext] Error 2
!!! Compiling ruby 2.0.0-p451 failed!
在此错误之上,我还有一堆警告:
compiling parser.c
parser.c:94:18: warning: unused variable 'JSON_object_error' [-Wunused-const-variable]
static const int JSON_object_error = 0;
^
parser.c:96:18: warning: unused variable 'JSON_object_en_main' [-Wunused-const-variable]
static const int JSON_object_en_main = 1;
......更像是这样
16 warnings generated.
我安装了ruby 2.1.0并且工作正常,但我需要使用2.0.0处理项目。我使用的是chruby,而不是RVM。
有什么想法吗?