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。
任何想法?
重複的http://stackoverflow.com/questions/23488790/compile-ruby-2-0-errors-without-rvm-or-rbenv-readline-c188626-error-func –