Installation Guide
Introduction
This guide describes how to install and set up the MES Infrastructure and its components. You can choose to install all or only the components you need, depending on your use case. These tools allow you to use published models. To use our tools, please refer to Tutorials.
Prebuilt Releases
A prebuilt package of executables is available for direct download. This eliminates the need for manual compilation. The binaries are built on manylinux2014 and are compatible with any Linux distribution using glibc ≥ 2.17 (Ubuntu >= 13.04, Centos>=7 or any other linux distro that has glibc>=2.17). You must also install OpenMP support.
You might also want to install our PyPi python package for working with python.
| Platform | x86_64 (Intel/AMD) | aarch64 (ARM / Apple Silicon) |
|---|---|---|
| Linux (glibc) | ✅ Pre-built (Py 3.10-3.14) | ✅ Pre-built (Py 3.12) |
| Linux (Alpine/musl) | 🛠️ Compile Required | 🛠️ Compile Required |
| Windows | ✅ Pre-built (Py 3.10-3.13) | 🛠️ Compile Required |
| macOS | ✅ Pre-built (Py 3.10-3.13) | 🛠️ Compile Required |
Note: For any Compile Required or either not listed as Pre-built. Compliation is required. See the "Build from Source" instructions below.
Prerequisites
Install OpenMP Support (Ubuntu)
Install OpenMP for parallel processing:
Note: This step is required even if you don't plan to compile the tools. It is required for runtime. Equivalent package exists in other linux distros, but here we will cover Ubuntu.
Building the tools yourself
Before building the tools, complete the following steps:
1. Install Compiler and Build Tools (Ubuntu)
Install the required compiler and build tools if you want to build the software yourself:
2. Install Boost Libraries (Ubuntu)
Compiling Boost from Source
You can download Boost and compile it manually. Example steps for version 1.85.0:
Installing Boost via Package Manager
Note: On Ubuntu 22.04, Boost version 1.74 is available and compatible. It was also tested with newest Boost version 1.89.0(2025-August-14) as today
Important: This method is not required for the AlgoMarker library or the Python API. This is only for working with the legacy tools
Available Components
You can install any of the following five components:
- AlgoMarker Shared Library: A shared Linux C library for accessing the AlgoMarker API and generating predictions/outputs from a model. Designed for production use, it supports only the essential "predict" and related APIs. Follow those steps only if you want to productize your model.
- AlgoMarker Wrapper: A REST API wrapper for the AlgoMarker Shared Library. Follow those steps only if you want to productize your model.
- MES Tools to Train and Test Models: Command-line executables for training, testing, and manipulating models using the MR_LIBS infrastructure. Required for training new models. Alternatively, you can use the Python API.
- Python API for MES Infrastructure: Python API, enabling model training, testing, and manipulation from Python. Some features may only be available via MES Tools or by extending the Python API.
- [MR_Scripts]: Useful Python and Bash scripts. Clone the repository with
git clone git@github.com:Medial-EarlySign/MR_Scripts.git. No need to install it.
Environment Setup Script
After installing the required components, it is recommended to use the following script to configure your shell environment for all tools and scripts (This is only needed, if you are not using the python pypi package or if you want to use the executables):
Tip: Adjust the
LD_PATH,MR_LIBS,MR_TOOLS, andMR_SCRIPTSvariables as needed for your system.