2014-05-12 76 views
2

我开始与ruby-install ruby 2.0.0错误编译chruby安装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! 

超过这个错误的旧版本的Ruby的安装,我有一堆警告以及:

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. 

我有红宝石2.1.0安装和工作正常,但我需要在AP工作与2.0.0的项目。我使用chruby,而不是RVM。

任何想法?

+0

重复的http://stackoverflow.com/questions/23488790/compile-ruby-2-0-errors-without-rvm-or-rbenv-readline-c188626-error-func –

回答