【问题标题】:Ruby/Mavericks 10.9/Xcode 5红宝石/小牛队 10.9/Xcode 5
【发布时间】:2013-07-28 09:39:12
【问题描述】:

我正在尝试在 Ruby 2.0.0 上安装 Nokogiri gem,同时使用 Mavericks 10.9 和 Xcode 5,但我不断收到错误

You have to install development tools first

我从 Apple 的开发者网站下载并安装了 Mavericks 的命令行工具,所以我不确定问题出在哪里。

我尝试了this question 中的解决方案,但在终端中输入xcode-select --install 时,我只是返回 --install 的帮助菜单,这似乎不是一个有效的参数

Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder_path>
   or: xcode-select -version
Arguments:
   -print-path                     Prints the path of the current Xcode folder
   -switch <xcode_folder_path>     Sets the path for the current Xcode folder
   -version                        Prints xcode-select version information

【问题讨论】:

  • 你读过this question吗?
  • 我在发帖前已经阅读过,但没有成功

标签: ruby-on-rails ruby command-line-tool xcode5 osx-mavericks


【解决方案1】:

我在安装 Mavericks 后遇到了类似的问题。在命令行中输入这个对我有用:

xcode-select --install

安装最新版本的命令行工具;不用和ADC打交道!

【讨论】:

  • 是的!在小牛队表现出色
【解决方案2】:

第一

xcode-select --switch /Applications/Xcode.app/Contents/Developer

然后,由于mavericks还没有发布,所以Ruby头文件有bug。

你应该试试这个解决方案 https://gist.github.com/goshakkk/5763489 带有 Xcode5 DP 版本。

【讨论】:

    【解决方案3】:

    Xcode 5.0.1 解决了 Ruby 标头问题。目前可从 Apple 的开发者网站获取。

    【讨论】:

      猜你喜欢
      • 2017-06-14
      • 2019-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多