【问题标题】:RVM Failing to install Ruby on OS x 10.9RVM 无法在 OS x 10.9 上安装 Ruby
【发布时间】:2014-04-29 23:01:23
【问题描述】:

我正在尝试使用 RVM 在我的 OS X Mavericks 笔记本电脑上安装 Ruby 和 Rails。当我跑步时:

rvm 要求

我遇到了:

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 --install

但我被告知服务器上没有命令行工具。

我注意到了这一行:

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

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

我需要做什么?

【问题讨论】:

  • 尝试添加符号链接sudo ln -s /usr/bin/gcc /usr/bin/llvm-gcc-4.2

标签: ruby-on-rails ruby macos rvm


【解决方案1】:

先安装 HomeBrew,然后运行:

rvm 要求

在 Mac OS Mavericks 上为我工作。 (提示表格How install ruby 2.1.0 on OS_X 10.9 using rvm? ( No binary rubies available for: osx/10.9/x86_64/ruby ))

【讨论】:

    【解决方案2】:

    在尝试符号链接之前,我尝试从命令行运行 mac 端口。我收到“-bash: port: command not found”错误。我手动下载并安装了 macports,之后一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-29
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 2014-03-20
      • 2013-11-01
      • 1970-01-01
      相关资源
      最近更新 更多