简体   繁体   English

在Mac OSX(Yosemite)上安装Xcode

[英]Installing Xcode on Mac OSX (Yosemite)

I posted this question on Apple's forum, but it wasn't allowed for some reason. 我在苹果论坛上发布了这个问题,但是由于某种原因而被禁止。 I've already seen " Installing gem or updating RubyGems fails with permissions error ", which is where I first learned about rbenv. 我已经看过“ 安装gem或更新RubyGems失败,并出现权限错误 ”,这是我第一次了解rbenv的地方。

I'm confused because I'm new to Ruby, rbenv, and Apple's command line developer tools/XCode and don't really understand what's going on. 我很困惑,因为我是Ruby,rbenv和Apple的命令行开发人员工具/ XCode的新手,并且并不真正了解发生了什么。

After typing a command into Terminal, I got the following message: 在终端中输入命令后,出现以下消息:

The "xcrun" command requires the command line developer tools. “ xcrun”命令需要命令行开发人员工具。 Would you like to install the tools now? 您想立即安装工具吗?

The options are "Install" and "Get Xcode." 选项是“安装”和“获取Xcode”。

I'm not sure which one to choose, because I don't understand all the pros and cons. 我不确定该选择哪一个,因为我不了解所有的利弊。 I need Ruby because I'm working with Bootstrap, and I apparently need XCode (or command line tools) to work with Ruby. 我需要Ruby,因为我正在使用Bootstrap,并且显然需要XCode(或命令行工具)才能与Ruby一起使用。

My instincts say go with Xcode, as it's presumably specially designed for this kind of thing. 我的直觉说Xcode可以使用,因为Xcode大概是为这种事情而设计的。 Would that be the best choice? 那将是最佳选择吗? I just want to make sure I don't start off on the wrong foot and mess up something in my system, as others have done. 我只想确保我不会像其他人那样从错误的脚步开始,弄乱系统中的某些内容。

Take a look at " Xcode Command Line Tools " on Rails and XCode Command Line Tools. 看一下Rails和XCode命令行工具上的“ Xcode命令行工具 ”。

XCode is a full blown development environment for Apple native-development. XCode是用于Apple本机开发的全面开发环境。 You don't need all of that overhead for Ruby or Rails, so go with the Command Line Tools to get just what you need. 对于Ruby或Rails,您并不需要所有这些开销,因此请使用命令行工具来获取所需的内容。

Your situation might be analogous to doing an installation of Eclipse IDE in order to run some Java software that really only needs a Java Runtime Engine installation to run. 您的情况可能类似于为运行某些Java软件而安装Eclipse IDE,而这些Java软件实际上只需要安装Java Runtime Engine即可运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM