Installing the program

On Windows platforms

The 64-bit version of SIR is available for Windows and has been tested on Windows 10 and Windows 11.

  • Download the installer sir-xx.yy.zz_install.exe from: http://www.ba.ic.cnr.it/softwareic/sir/sir-download/
  • Double-click the downloaded file and follow the on-screen instructions to complete the installation.
  • Once installed, you can launch SIR by double-clicking its desktop icon or from the Start Menu.

The installer bundles all required runtime dependencies, so no additional software needs to be
installed.

On macOS platforms

A native macOS build of the current version of SIR is not yet available. However, a legacy
version
can be downloaded as a .dmg disk image from the official download page:

https://www.ba.ic.cnr.it/softwareic/sir/sir2014-download-2/

  • Download the .dmg file from the link above.
  • Double-click the disk image to mount it.
  • Drag the SIR application into your Applications folder.
  • On first launch you may need to right-click → Open to bypass Gatekeeper, since the app is not
    signed
    with an Apple Developer certificate.

Note: The macOS download provides an older release of SIR. A fully up-to-date macOS version is
planned for a future release.

 

On Linux platforms

On Linux, SIR can be installed in two ways: from a pre-built Debian package
(.deb) or
by compiling from source (.tar.gz). Both packages are available from: https://www.ba.ic.cnr.it/softwareic/sir/sir2014-download-2/

 

Option A – Install from Debian package
(.deb)

Pre-built .deb packages are the easiest way to install SIR on Debian, Ubuntu, and their
derivatives. The
package installs SIR system-wide to /usr.

  • Install runtime dependencies

On Debian / Ubuntu, install the required runtime dependencies with:

sudo apt-get update
sudo apt-get install gfortran libqt6core6 libqt6gui6 libqt6widgets6 \
    libqt6opengl6 libqt6openglwidgets6 libqt6printsupport6 \
    libqt6network6 libopenbabel7 openmpi-bin libfftw3-double3

On Fedora:

sudo dnf install gcc-gfortran qt6-qtbase openbabel-libs \
    openmpi fftw-libs-double

On RHEL / CentOS / Rocky Linux:

# Enable EPEL first
sudo dnf install epel-release

sudo dnf install gcc-gfortran qt6-qtbase openbabel-libs \
    openmpi fftw-libs-double

Note: A native .rpm package is not available at this time. On Fedora, RHEL,
CentOS and
Rocky Linux you can install from source (see Option B below).

  • Download and install the package

Download the appropriate .deb file for your architecture from https://www.ba.ic.cnr.it/softwareic/sir/sir2014-download-2/

Install the package with:

sudo dpkg -i sir-*.deb

If dpkg reports missing dependencies, fix them with:

sudo apt-get install -f

Alternatively, you can install in a single step using apt:

sudo apt install ./sir-*.deb

Launch SIR from the terminal:

sir

The executable is installed to /usr/bin/sir and should already be on your PATH.

To remove SIR installed via the Debian package, run: sudo apt remove sir

 

Option B – Compiling from source (.tar.gz)

Building from source gives you full control over compiler choice and optimisation flags. SIR uses
CMake as its build system.

  • Install build tools and development packages

Most Linux distributions come with the core set of development tools already installed but if not, you will need
to
install the following packages via the appropriate package manager: cmake, C++ and Fortran compilers, Qt6, Open
Babel library, Open MPI library, FFTW library.

A Fortran compiler compliant with the Fortran 95 standard is required: SIR has been written and tested using the
Intel Fortran Compilers (ifort, mpiifort) but if IFORT is not available, GNU Fortran (gfortran, mpifort) can
also be
used.

On Debian / Ubuntu, install all build dependencies with:

sudo apt-get update
sudo apt-get install cmake build-essential pkg-config gfortran \
    qt6-base-dev libopenbabel-dev libopenmpi-dev libfftw3-dev

On Fedora:

sudo dnf groupinstall "Development Tools"
sudo dnf install cmake gcc-gfortran pkgconfig \
    qt6-qtbase-devel openbabel-devel openmpi-devel fftw-devel

After installing openmpi-devel on Fedora, you may need to load the MPI module before
building:

module load mpi/openmpi-x86_64

On RHEL / CentOS / Rocky Linux:

# Enable EPEL and CRB/PowerTools repositories first
sudo dnf install epel-release
sudo dnf config-manager --set-enabled crb   # RHEL 9 / Rocky 9

sudo dnf groupinstall "Development Tools"
sudo dnf install cmake gcc-gfortran pkgconfig \
    qt6-qtbase-devel openbabel-devel openmpi-devel fftw-devel
  • Quick install with install_sir.sh

The source archive includes a convenience script, install_sir.sh, that automates the configure →
build →
install workflow. By default it uses mpifort as the Fortran compiler and installs the program
to
/opt/sir-2.0.0.

Download the file sir-xx.yy.zz.tar.gz from https://www.ba.ic.cnr.it/softwareic/sir/sir2014-download-2/

Navigate to the directory where you downloaded the tarball, extract it and run the install script:

tar xzf sir-*.tar.gz
cd sir-*
chmod +x install_sir.sh
./install_sir.sh

The script will prompt for your password when it reaches the sudo cmake –install step.

To use a different Fortran compiler, pass it as the first argument:

./install_sir.sh gfortran     # GNU Fortran
./install_sir.sh ifort        # Intel classic
./install_sir.sh ifx          # Intel oneAPI
./install_sir.sh mpiifort     # Intel MPI wrapper

After a successful build, the executable is located at /opt/sir-2.0.0/bin/sir. Add it to your
PATH:

export PATH=/opt/sir-2.0.0/bin:$PATH

To make this permanent, append the line to your ~/.bashrc or ~/.profile.

The script performs three steps automatically: 1) Configures the build with CMake (Release
mode),
2) Compiles using all available CPU cores, 3) Installs to
/opt/sir-2.0.0 via sudo.

  • Manual build with CMake

If you prefer full control, you can run the CMake commands yourself:

# 1. Extract and enter source directory
tar xzf sir-*.tar.gz
cd sir-*

# 2. Configure (choose your Fortran compiler)
cmake -B build -S . -DCMAKE_Fortran_COMPILER=mpifort -DCMAKE_BUILD_TYPE=Release

# 3. Build (use parallel jobs for speed)
cmake --build build -j$(nproc)

# 4. Install (requires root privileges)
sudo cmake --install build

The -j$(nproc) flag uses all available CPU cores for compilation. You can replace it with a
specific
number (e.g. -j4) according to your system’s capabilities.

By default, SIR installs to /opt/sir-<version>.

You can specify the Fortran compiler during configuration using the -DCMAKE_Fortran_COMPILER
option.
Replace mpifort with the desired compiler name:

  • gfortran for the GNU Fortran compiler
  • mpifort for the MPI-enabled GNU Fortran compiler
  • ifort for the Intel classic Fortran compiler
  • ifx for the Intel oneAPI Fortran compiler
  • mpiifort for the MPI-enabled Intel Fortran compiler

Download and install Intel Fortran compilers from the Intel oneAPI website if you choose to use them: https://www.intel.com/content/www/us/en/developer/tools/oneapi/toolkits.html.

Optional Installation with Custom Prefix:

To install SIR to a non-standard location, use the -DCMAKE_INSTALL_PREFIX option during the
CMake
configuration step:

cmake -B build -S . -DCMAKE_Fortran_COMPILER=mpifort -DCMAKE_INSTALL_PREFIX=/your/custom/installation/path
cmake --build build -j$(nproc)
sudo cmake --install build

This will install SIR to the specified /your/custom/installation/path directory.