I'm attempting to install the Nokogiri gem on Ruby 2.0.0 while using Mavericks 10.9 along w/ Xcode 5 but I keep getting the error
我正在尝试在Ruby 2.0.0上安装Nokogiri gem,同时在w/ Xcode 5中使用Mavericks 10.9,但我一直得到错误。
You have to install development tools first
I downloaded and installed the command line tools for Mavericks from Apple's developer site so I'm not really sure what the problem is.
我从苹果的开发者站点下载并安装了Mavericks的命令行工具,所以我不太确定问题是什么。
I've attempted the solution in this question but when inputting xcode-select --install
into the terminal I just get back the help menu at --install doesn't seem to be a valid argument
我已经尝试了这个问题的解决方案,但是在将xcode-select—安装到终端时,我只是返回help菜单at—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
3 个解决方案
#1
5
I encountered a similar issue after I installed Mavericks. Entering this in the command-line worked for me:
在安装了Mavericks之后,我遇到了类似的问题。在命令行中输入这个对我来说有用:
xcode-select --install
xcode-select——安装
Installs the latest version of command-line tools; no need to deal with ADC!
安装最新版本的命令行工具;不需要处理ADC!
#2
0
first
第一个
xcode-select --switch /Applications/Xcode.app/Contents/Developer
Then, since mavericks has not yet been released, there is a bug in the Ruby header file.
然后,由于mavericks还没有发布,Ruby头文件中出现了一个错误。
You should try this solution https://gist.github.com/goshakkk/5763489 WITH a Xcode5 DP version.
您应该尝试使用Xcode5 DP版本的这个解决方案https://gist. github.com/goshakk/5763489。
#3
0
Xcode 5.0.1 solves the Ruby header problem. It is currently available from Apple's developer site.
Xcode 5.0.1解决了Ruby头问题。它目前可以从苹果的开发者网站获得。
#1
5
I encountered a similar issue after I installed Mavericks. Entering this in the command-line worked for me:
在安装了Mavericks之后,我遇到了类似的问题。在命令行中输入这个对我来说有用:
xcode-select --install
xcode-select——安装
Installs the latest version of command-line tools; no need to deal with ADC!
安装最新版本的命令行工具;不需要处理ADC!
#2
0
first
第一个
xcode-select --switch /Applications/Xcode.app/Contents/Developer
Then, since mavericks has not yet been released, there is a bug in the Ruby header file.
然后,由于mavericks还没有发布,Ruby头文件中出现了一个错误。
You should try this solution https://gist.github.com/goshakkk/5763489 WITH a Xcode5 DP version.
您应该尝试使用Xcode5 DP版本的这个解决方案https://gist. github.com/goshakk/5763489。
#3
0
Xcode 5.0.1 solves the Ruby header problem. It is currently available from Apple's developer site.
Xcode 5.0.1解决了Ruby头问题。它目前可以从苹果的开发者网站获得。