3

Are they the same thing?

I was reading the "homebrew-php" github page, and it mentions about xcode and its command line tools. My understanding about homebrew is it is a package manager like npm, why does it have anything to do with xcode, which I think doesn't have much to do with PHP.

5

Homebrew doesn't include a compiler and other tools that would duplicate Apple's development tools. Instead of that - it just asks for you to get the basic tools from Apple.

Xcode uses the same tools under the hood as homebrew - so you could satisfy this specific requirement either by installing the command line tools directly or via an Xcode install.

So, they aren't the same thing and you need both for the brew package manager to run.

  • 1
    So it is like homebrew needs something to run, and xcode happens to have it, which is part of the "command line tools", so instead of include this "something" in itself, homebrew just tells its user to install xcode's CLT? Is this understanding right? – shenkwen Mar 6 '16 at 23:26
  • Do you really mean retirement or is it just a Freudian slip and you wanted to write requirement ;-) – klanomath Mar 6 '16 at 23:37
  • @shenkwen Exactly. Rather than packaging and installing the same or equivalent - the brew folks tell you to get "pre-req" from Apple. – bmike Mar 6 '16 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .