Install Xcode Command Line Tools

This section provides a tutorial on how to install Xcode Command Line Tools, which is required to install Perl add-on modules on macOS.



If you want to install Perl add-on modules on macOS, you need to install Xcode Command Line Tools package.

If Xcode is already installed on your macOS system, the Command Line Tools package is included and avaible to you without any additional installation.

If you have used the "make" tool to build any executable program from source code, you may have already prompted to install Xcode. If so, the Command Line Tools package is included and avaible to you without any additional installation.

If you want to install Xcode Command Line Tools manually, you can following instructions given at https://developer.apple.com/library/archive/technotes/tn2339.

Once Xcode Command Line Tools is installed, you can verify it by running these commands:

herong$ xcode-select --print-path
/Library/Developer/CommandLineTools

herong$ clang -v
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

herong$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr \
   --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

herong$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-305
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h \
   armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 9.0.0, (clang-900.0.39.2) ...
TAPI support using: Apple TAPI version 900.0.15 (tapi-900.0.15)



 

Table of Contents

 About This Book

 Perl on Linux Systems

 ActivePerl on Windows Systems

 Data Types: Values and Variables

 Expressions, Operations and Simple Statements

 User Defined Subroutines

 Perl Built-in Debugger

 Name Spaces and Perl Module Files

 Symbolic (or Soft) References

 Hard References - Addresses of Memory Objects

 Objects (or References) and Classes (or Packages)

 Typeglob and Importing Identifiers from Other Packages

 String Built-in Functions and Performance

 File Handles and Data Input/Output

 Open Files in Binary Mode

 Open Directories and Read File Names

 File System Functions and Operations

 Image and Picture Processing

 Using DBM Database Files

 Using MySQL Database Server

 Socket Communication Over the Internet

 XML::Simple Module - XML Parser and Generator

 XML Communication Model

 SOAP::Lite - SOAP Server-Client Communication Module

 Perl Programs as IIS Server CGI Scripts

 CGI (Common Gateway Interface)

 XML-RPC - Remote Procedure Call with XML and HTTP

 RPC::XML - Perl Implementation of XML-RPC

 Integrating Perl with Apache Web Server

 CGI.pm Module for Building Web Pages

 LWP::UserAgent and Web Site Testing

 Converting Perl Script to Executable Binary

Managing Perl Engine and Modules on macOS

 Perl Version Pre-Installed on macOS

Install Xcode Command Line Tools

 Configure CPAN Shell

 Install Perl Module from CPAN

 Install Perl Module from Source Code

 References

 Full Version in PDF/EPUB