【问题标题】:Having some trouble updating to Ruby 2.0更新到 Ruby 2.0 时遇到一些问题
【发布时间】:2013-10-27 21:09:14
【问题描述】:

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

【问题讨论】:

  • 这很奇怪。如果您正在运行 OSX,为什么它会包含 X11 的东西并运行一些 win32 测试?!我使用自制软件和 rbenv 并且在 10.8 上没有问题。莫非是小牛的rvm有问题?

标签: ruby macos rvm


【解决方案1】:

运行:

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

【讨论】:

  • 甚至,rvm install 2.0,不用担心错误修复版本。
  • @Dogweather 下一个版本是 2.1.0,如果您需要最新的 ruby​​,请使用rvm install ruby
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-11-29
  • 2020-11-10
  • 2021-04-07
  • 1970-01-01
  • 1970-01-01
  • 2017-09-10
  • 2013-06-24
相关资源
最近更新 更多