Stay organized with collections
Save and categorize content based on your preferences.
Introduction
This guide explains how to install OR-Tools for C++ on MacOS.
Although these instructions might also work on other MacOS variants, we
have only tested them on machines meeting the following requirements:
MacOS 13.0.1 (Ventura) Intel 64-bit (x86_64)
MacOS 13.0.1 (Ventura) M1 (arm64)
Prerequisites
The following sections describe the prerequisites for installing OR-Tools.
Xcode Command Line Tools
You must install the Xcode Command Line Tools. To do so, open the
Terminal, found in /Applications/Utilities/, and enter:
xcode-select--install
Click “Install” to download and install Xcode Command Line Tools. You don’t need
to "Get Xcode" from the App Store. If you have a slow Internet connection, it
may take many minutes.
Verify that you’ve successfully installed Xcode Command Line Tools:
xcode-select-p
You should see:
/Library/Developer/CommandLineTools
Installing OR-Tools
Take the following steps to install the OR-Tools library for C++:
Download and extract the binary distribution for your system:
To test your C++ installations, open a terminal window and navigate to
the directory where you unpacked the binary distribution. Then enter the
following command:
maketest
This runs a selection of examples for OR-Tools. If all the examples run
successfully, you are ready to
get started with OR-Tools.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-16 UTC."],[[["This guide provides step-by-step instructions for installing OR-Tools for C++ on MacOS 13.0.1 (Ventura), specifically for Intel 64-bit and M1 architectures."],["Before installing OR-Tools, ensure you have Xcode Command Line Tools installed by running `xcode-select --install` in the Terminal."],["Download the appropriate OR-Tools binary distribution for your system (Intel or M1) from the provided links and extract it."],["Validate your OR-Tools installation by navigating to the extracted directory in the terminal and running the command `make test`."],["Upon successful installation and validation, you can proceed to utilize OR-Tools for your C++ projects."]]],["To install OR-Tools for C++ on MacOS, first install Xcode Command Line Tools by running `xcode-select --install` in the terminal and verifying with `xcode-select -p`. Next, download and extract the OR-Tools binary distribution for either MacOS Intel or M1. Finally, validate the installation by navigating to the extracted directory in the terminal and running `make test`. Successful completion indicates OR-Tools is ready for use.\n"]]