我尝试使用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,但仍然没有成功。
答案 0 :(得分:3)
运行:
rvm get head # new version of rvm with fixes for mavericks problems
rvm install 2.0.0 # install latest known patchlevel of 2.0.0
rc2
是候选版本,不应该使用它应该始终使用最新发布的补丁级别,除非您明确知道它会破坏您的应用程序。