Can';t安装Ruby on Mountain Lion 10.8.2

Can';t安装Ruby on Mountain Lion 10.8.2,ruby,xcode,macos,Ruby,Xcode,Macos,我在跑山狮五号。10.8.2在我的mac和Xcode 4.5.2上 我运行的ruby版本是默认版本1.8.7。我想升级到1.9.3,但它不起作用 我安装了gcc编译器: $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation,

我在跑山狮五号。10.8.2在我的mac和Xcode 4.5.2上

我运行的ruby版本是默认版本1.8.7。我想升级到1.9.3,但它不起作用

我安装了gcc编译器:

$ gcc --version 

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ git --version
git version 1.7.8

$ rvm --version
rvm 1.17.0 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
输出如下:

No binary rubies available for: downloads/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /Users/eduardo/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)...

ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection...

ruby-1.9.3-p327 - #extracted to /Users/eduardo/.rvm/src/ruby-1.9.3-p327 (already extracted)

ruby-1.9.3-p327 - #configuring

ruby-1.9.3-p327 - #compiling

Error running 'make', please read /Users/eduardo/.rvm/log/ruby-1.9.3-p327/make.log
There has been an error while running make. Halting the installation.
我的make.log在最后几行中如下所示:

collect2: ld returned 1 exit status
make[2]: *** [../../.ext/x86_64-darwin12.2.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2

请问有什么帮助吗?我不知道如何解决这个问题。

我今天拿到了macbook pro,并通过本教程安装了ruby:

尝试在没有tk的情况下安装ruby:
rvm安装1.9.3——没有tk
尝试卸载XCode并使用OS X gcc安装程序:我这样做非常成功。如果你需要XCode——比如说,开发iOS应用程序——在安装rubies后重新安装它。酷……rvm安装1.9.3——没有tk”成功了!!!!谢谢你,非常简洁!你能加入-?
collect2: ld returned 1 exit status
make[2]: *** [../../.ext/x86_64-darwin12.2.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2