RVM在OS x 10.9上安装Ruby失败



我试图使用RVM在我的OS X Mavericks笔记本电脑上安装Ruby和Rails。当我运行:

rvm需求

I run into:

Checking requirements for osx.
Installing requirements for osx.
Updating system..jeffwomble password required for 'port -dv selfupdate': 
........
Error running 'requirements_osx_port_update_system ',
showing last 15 lines of /Users/jeffwomble/.rvm/log/1395493335/update_system.log
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9.2
checking Xcode location... /Applications/Xcode.app/Contents/Developer/
checking for gcc... /usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/llvm-gcc-4.2 ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 77
DEBUG: Error installing new MacPorts base: shell command failed (see log for details)
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)
+ return 1
+ return 1
Requirements installation failed with status: 1.

我已经安装了最新版本的Xcode。我试着运行:

Xcode-select——安装

但是我被告知命令行工具在服务器上不可用。

我注意到这一行:

checking for gcc... /usr/bin/llvm-gcc-4.2

但是我认为文件应该是/usr/bin/llvm-gcc

我需要做什么?

在我可以尝试符号链接之前,我尝试从命令行运行mac ports。我得到一个"-bash: port: command not found"错误。我手动下载并安装了macports,之后一切都运行得很好。

先安装HomeBrew,然后运行:

rvm需求

在Mac OS Mavericks上为我工作。如何使用rvm在OS_X 10.9上安装ruby 2.1.0 ?(osx/10.9/x86_64/ruby没有二进制红宝石))

最新更新