Ubuntu - Open-Quantum-Platform/openqp GitHub Wiki
The Ubuntu requires special attention to the installation of prerequisites.
- Updating and Upgrading Ubuntu.
sudo add-apt-repository universe
sudo add-apt-repository main
sudo apt-get update -y
- Installations by apt.
sudo apt-get install -y ninja-build liblapack-dev
sudo apt -y install python3-pip
sudo apt -y install python3-cffi git gfortran g++ pkg-config libhdf5-dev libblis-dev liblapack-dev libopenblas-base
- Installations by pip and snap. Snap is needed to install recent version of cmake.
sudo pip install meson dftd4
sudo snap install cmake
sudo ln -s /snap/bin/cmake /usr/bin/cmake
- Setting the PATH for cmake in .bashrc in the case of version 3.27.6.
export PATH=~/cmake-3.27.6-linux-x86_64/bin:$PATH
- Setting Intel Math Library, if you have installed it.
source ~/intel/oneapi/setvars.sh