

You can check out a specific release using a Gitįor example, to work with the v9.5 release instead of the

You can get the source code for previous releases in either of the following ways: To retrieve the source code from the main branch, enter: git clone -b main Download previous releases Warning: The full path to the installation directory (where you extract theįiles) must not contain any spaces. You can get the stable source code for OR-Tools in either of the following ways:Ĭlone the stable branch by entering: git clone ĭownload the latest release in a compressed file, by clicking the Improvements have been applied it's more current, but less stable.

The main branch is where the latest updates and The stable branch has been thoroughly tested and should work flawlessly on all There are two distinct branches of the OR-Tools source code on You can test Maven is correctly installed and can find java using the following Terminal window and enter: brew install maven Then you need to export the JAVA_HOME variable: export JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk.jdk Maven Terminal window and enter: brew install openjdk sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk Once you have installed Homebrew, you can install You must install the Java JDK 8.0 or higher. To install SWIG tool, open a terminal window and enter: brew install swig Java JDK To install C++ tools, open a terminal window and enter: brew install cmake wget pkg-config SWIG tool Homebrew/homebrew-core (git revision 0e0c84 last commit ) To verify that you’ve successfully installed brew: brew -version To do so, open a terminal window and enter: /bin/bash -c "$(curl -fsSL )" brew update "missing package manager for macOS" otherwise known as To install the remaining prerequisites, we recommend first installing the You should see: /Library/Developer/CommandLineTools Verify that you’ve successfully installed Xcode Command Line Tools: xcode-select -p If you have a slow Internet connection, it

Terminal, found in /Applications/Utilities/, and enter: xcode-select -installĬlick “Install” to download and install Xcode Command Line Tools. You must install the Xcode Command Line Tools. The following sections describe the prerequisites for installing OR-Tools. Have only tested them on machines meeting the following requirements: OR-Tools, we recommend the package installation.Īlthough these instructions might also work on other MacOS variants, we Unless you plan to modify the source code or use a third-party solver with This guide explains how to build from source OR-Tools, with support for
