我一直在努力在我的 macbook pro 上更新 Ruby。我目前运行的是 1.8.6,需要升级到至少 1.8.7 才能安装 rails。我有 rvm,但每次尝试安装新版本的 ruby 时,都会出现以下错误:
Error running 'make ', please read /Users/telenardo/.rvm/log/ruby-1.9.2-p320/make.log
运行 make 时出现错误。停止安装。
当我打开 make.log 文件时,我收到以下消息:
[2012-07-29 21:39:20] make
/usr/bin/gcc-4.2 -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin12.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o main.o -c main.c
In file included from ./include/ruby.h:32,
from main.c:13:
./include/ruby/ruby.h:70:20: error: stdarg.h: No such file or directory
In file included from ./include/ruby/ruby.h:1343,
from ./include/ruby.h:32,
from main.c:13:
./include/ruby/intern.h:27:22: error: varargs.h: No such file or directory
make: *** [main.o] Error 1
任何人都可以阐明可能出了什么问题吗?
谢谢!