You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation instructions for MC++/CRONOS/CANON/MAGNUS (last updated 2025-09-26)
Windows: install WSL2 with default distribution (Ubuntu 24.04 LTS)
from Powershell or Command Prompt run wsl --install, then follow the instructions to set up a user account (a system restart might be required)
all subsequent commands are to be run from the Ubuntu terminal (use it via Windows Terminal)
sudo apt update && sudo apt full-upgrade
explorer.exe . lets you browse Ubuntu directories using the Windows file explorer
Required compilers and build tools
sudo apt install build-essential gfortran cmake
Set up Git
git config --global user.name "<NAME>"
git config --global user.email "<EMAIL>"
change the default text editor: git config --global core.editor <EDITOR>
SSH key
generate a new keypair: ssh-keygen -t ed25519, then press Enter a few times to continue with the default options
read the public key with cat ~/.ssh/id_ed25519.pub, copy and add it to the Github account settings
MC++ dependencies
sudo apt install liblapack-dev libblas-dev
Boost: sudo apt install libboost-all-dev, then verify that the boost libraries have been installed correctly with cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
obtain the HSL libraries MC13, MC21, MC33; then tar -xzf mc13-1.0.0.tar.gz, cd mc13-1.0.0, ./configure and sudo make install (repeat for MC21 and MC33)
Armadillo: download the latest release (currently v15.0.3), extract it with tar -xJf armadillo-15.0.3.tar.xz, cd armadillo-15.0.3 then ./configure and sudo make install
MC++
cd /opt
clone the repository git clone git@github.com:omega-icl/mcpp.git
cd mcpp/src
git submodule init && git submodule update
sudo make install
Environment variables
append the following lines to ~/.bashrc using a text editor
move the installer into this directory sudo mv <FILEPATH> /opt/gams/ (<FILEPATH> can be a Windows path, for example /mnt/c/Users/<username>/Downloads/linux_x64_64_sfx.exe)
make sure the file can be executed with sudo chmod u+x linux_x64_64_sfx.exe and run it sudo ./linux_x64_64_sfx.exe
append the following lines to ~/.bashrc to assign a fixed MAC address, otherwise the license does not work after WSL2 restarts
# assign a persistent MAC address for adapter bond0 and rename it eth1
mac=1a:2b:3c:4d:5e:6f
if ! ip link show | grep -q $mac; then
sudo ip link add bond0 type bond # only if no bond0 adapter present already
sudo ip link set dev bond0 down
sudo ip link set dev bond0 address $mac
sudo ip link set dev bond0 name eth1
sudo ip link set dev eth1 up
fi
Gurobi license
generate a Named-User Academic license on the website, run grbgetkey <LICENSE_KEY> and click enter to save it at the default location
add the following line to ~/.bashrc and restart the terminal