1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
on-restart-benchmarks/software/minizinc/docs/en/installation_detailed.rst

29 lines
1.9 KiB
ReStructuredText

.. _ch-installation_detailed:
Installation from Source Code
=============================
The easiest way to install a complete version of MiniZinc is to use the binary packages we provide for several platforms, as explained in :ref:`ch-installation`. In the following, we describe how to install MiniZinc from source code.
All components of MiniZinc are free and open source software, and compilation should be straightforward if you have all the necessary build tools installed. However, third-party components, in particular the different solvers, may be more difficult to install correctly, and we cannot provide any support for these components.
The source code for MiniZinc can be downloaded from its GitHub repository at https://github.com/MiniZinc/libminizinc. The source code for the MiniZinc IDE is available from https://github.com/MiniZinc/MiniZincIDE. The ``master`` branch of each repository points to the latest release version, while the ``develop`` branch points to the current state of development (and may be buggy or not even compile sometimes).
You will also need to install additional solvers to use with MiniZinc. To get started, try Gecode (http://www.gecode.org) or Chuffed (https://github.com/chuffed/chuffed). We don't cover installation instructions for these solvers here.
The build system for MiniZinc relies on the CMake tool (https://cmake.org). It
will try to find some solvers (Gecode, CBC, SCIP, Gurobi, XPRESS and CPLEX) in
their standard locations. You can point to alternative locations using flags
such as ``-DGECODE_ROOT=...`` as additional flags to the ``cmake`` commands
explained below. Standard environment variables, such as ``GUROBI_HOME``, are
checked as well. See the file ``CMakeLists.txt`` for the current list of
solvers.
The following sections contain installation instructions for different operating systems:
.. toctree::
installation_detailed_windows
installation_detailed_linux
installation_detailed_wasm