Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Ruby/Mavericks 10.9/Xcode 5_Ruby On Rails_Ruby_Command Line Tool_Xcode5_Osx Mavericks - Fatal编程技术网

Ruby on rails Ruby/Mavericks 10.9/Xcode 5

Ruby on rails Ruby/Mavericks 10.9/Xcode 5,ruby-on-rails,ruby,command-line-tool,xcode5,osx-mavericks,Ruby On Rails,Ruby,Command Line Tool,Xcode5,Osx Mavericks,我试图在Ruby 2.0.0上安装Nokogiri gem,同时在w/Xcode 5上使用Mavericks 10.9,但我一直收到错误 You have to install development tools first 我从苹果的开发者网站下载并安装了Mavericks的命令行工具,所以我不确定问题出在哪里 我尝试了中的解决方案,但在将xcode选择--install输入到终端时,我只是返回了帮助菜单--install似乎不是一个有效的参数 Usage: xcode-select -pr

我试图在Ruby 2.0.0上安装Nokogiri gem,同时在w/Xcode 5上使用Mavericks 10.9,但我一直收到错误

You have to install development tools first
我从苹果的开发者网站下载并安装了Mavericks的命令行工具,所以我不确定问题出在哪里

我尝试了中的解决方案,但在将
xcode选择--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
用法:xcode选择-打印路径
或:xcode选择开关
或:xcode选择-版本
论据:
-打印路径打印当前Xcode文件夹的路径
-开关设置当前Xcode文件夹的路径
-版本打印xcode选择版本信息
首先

然后,由于mavericks尚未发布,Ruby头文件中有一个bug

你应该试试这个解决方案
使用Xcode 5 DP版本。

Xcode 5.0.1解决了Ruby头问题。它目前可以从苹果的开发者网站上获得。

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

xcode选择--安装


安装最新版本的命令行工具;不需要处理ADC

你读了吗?我在发帖前读过,但没有成功!对小牛队很有效
xcode-select --switch /Applications/Xcode.app/Contents/Developer