Skip to main content

Installation

Prebuilt binaries

The fastest way to get iec-checker is to grab a prebuilt binary from the GitHub releases page. Builds are published for:

  • Linux x86_64
  • Windows x86_64

Download the archive, extract it, and the iec_checker binary is ready to run.

Build from source

Linux

Install OCaml 5.1 or later and opam, then clone the repository and install the dependencies:

git clone https://github.com/iec-checker/iec-checker.git
cd iec-checker
opam install --deps-only .

Build the binary:

make build

The executable is now at bin/iec_checker.

Windows

Install OCaml for Windows following the installation guide. Then open the Cygwin shell, clone the repository, and follow the Linux build steps above.

Optional: Python wrapper and test suite

The checker.py script wraps the OCaml binary and adds extras like extended formatting and Python plugin support. The test suite is also written in Python.

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
make test

Verify the install

Run iec-checker against the bundled demo programs:

bin/iec_checker test/st/*.st

You should see one or more warnings printed to stdout. If you do, you're ready — head to the CLI reference for the full flag list.