0

我尝试使用 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,但仍然没有成功。

4

1 回答 1

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是一个候选版本,不应该使用它,除非您明确知道它会破坏您的应用程序,否则您应该始终使用最新发布的补丁级别。

于 2013-10-28T00:10:26.680 回答