Te hoztál bánatot a családunkba!” — kiáltja az anya a tinédzser lányának

„Te hoztál csak bajt a családunkba!” – kiáltotta felindultan az anya a tizenéves lánya felé.

„Anyu, hazaértél! Nagyon hiányozYou may have noticed occasionally you’ll get a prompt to update xcode or to install the command line tools. But if you ever try to run a command like git and get an error that it isn’t installed, or some other prompt about the command line developer tools, you’ll need to install them.

## What is the Command Line Tools Package?

The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the `/Library/Developer/CommandLineTools` directory.

## Should I install Xcode or the Command Line Tools Package?

This depends. If you’re planning to do development on the Mac, you probably want to install the full version of Xcode from the App Store, which includes everything in the Command Line Tools Package. However, if you just need the basic command line tools, you can install the Command Line Tools Package independently of Xcode.

## How to Install the Command Line Tools Package

#### 1. Open the Terminal Application

The Terminal application can be found in the `/Applications/Utilities/` directory.

#### 2. Install the Command Line Tools

Run the following command in the terminal:

“`bash
xcode-select –install
“`

This will trigger a popup from the system letting you start the installation process.

> **Note:** If you’re on macOS 10.9 or later, you can also install the command line tools directly from the command line without any user interaction by running:
> “`bash
> xcode-select –install
> “`

#### 3. Agree to the License Agreement

After the download is complete, you may be prompted to agree to the license agreement. You can do this by running the following command:

“`bash
> sudo xcodebuild -license
“`

#### 4. Verify the Installation

After installation is complete, verify the tools have been installed by running:

“`bash
> git –version
“`

or

“`bash
> clang –version
“`

If these commands return version information, the tools have been successfully installed.

#### 5. Optional: Switch Between Xcode and Command Line Tools

If you have both Xcode and the Command Line Tools installed, you can switch between them using:

“`bash
> sudo xcode-select –switch /Library/Developer/CommandLineTools
“`

or to switch back to Xcode:

“`bash
> sudo xcode-select –switch /Applications/Xcode.app/Contents/Developer
“`

## What’s Included in the Command Line Tools Package?

Here’s a list of some of the tools included in the Command Line Tools Package:

– **git**: Distributed version control system
– **clang**: C, C++, Objective-C compiler
– **ld**: The GNU linker
– **ar**: Create, modify, and extract from archives
– **nm**: Display name list (symbol table)
– **as**: The portable GNU assembler
– **lipo**: Create or operate on universal files
– **otool**: Display specified parts of object files or libraries
– **lorder**: List dependencies between object files
– **lex**: Lexical analyzer generator
– **yacc**: Yet another compiler compiler
– **make**: GNU version of the ‘make’ utility
– **cpp**: The GNU C preprocessor
– **gcov**: Coverage testing tool
– **gprof**: Display call graph profile data
– **mig**: Mach interface generator
– **md**: The markdown utility
– **ctags**: Create a tags file
– **gatherheaderdoc**: Generate documentation from header files
– **headerdoc2html**: Convert HeaderDoc comments to HTML
– **hpftodit**: Create font files for use with groff -Tlj4
– **indent**: Change the appearance of a C program
– **mkhtmlindex**: Create a HTML index from a set of HTML files
– **mkmanifest**: Create a shell script to restore Unix file names
– **pack200**: Transform a JAR file into a compressed pack200 file
– **pstopdf**: Convert PostScript to PDF
– **unpack200**: Transform a packed file into a JAR file
– **xml2man**: Convert XML source into man pages
– **rpcgen**: An RPC protocol compiler

For a complete list of all the command line tools included in the package, you can list the contents of the installation directory:

“`bash
> ls /Library/Developer/CommandLineTools/usr/bin/
“`

Rate article
News 24 Justall
Te hoztál bánatot a családunkba!” — kiáltja az anya a tinédzser lányának