我尝试使用 RVM 命令更新 Ruby:
rvm install ruby-2.0.0-rc2
它下载成功,然后以以下错误结束编译:
Error running 'make', please read
/Users/Daniel/.rvm/log/ruby-2.0.0-rc2/make.log There has been an error
while running make. Halting the installation.
以下是我在日志中发现的一些错误:
Failed to configure -test-/win32/dln. It will not be installed. Failed
to configure -test-/win32/fd_setsize. It will not be installed. Failed
to configure dl/win32. It will not be installed. Failed to configure
fiddle/win32. It will not be installed. Failed to configure gdbm. It
will not be installed. Failed to configure openssl. It will not be
installed. Failed to configure win32ole. It will not be installed.
还,
In file included from stubs.c:16:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^
1 error generated.
make[2]: *** [stubs.o] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2
我认为这可能是一个问题,因为我刚刚更新到 Mac OS 10.9。我尝试重新安装 X11,但仍然没有成功。