apt install quantum-espresso
で正常に動作。ビルド不要のため最も簡単な方法。注: Ubuntu 24.04 を使い続けたい場合は、次節 (1.2) の「ソースコードからのビルド」が 22.04.5 へのダウングレードの代替手段 になります。ビルドは手間が増えますが、OS を戻さずに回避可能です。
brew install gcc fftw openblas open-mpi
wget https://www.quantum-espresso.org/rdm-download/488/v7-3-1/4374c51f0d38b1be967fcf2a3bb298ef/qe-7.3.1-ReleasePack.tar.gz
tar xvf qe-7.3.1-ReleasePack.tar.gz
cd qe-7.3.1
./external/mbd/src/mbd_c_api.F90
内の f_c_string
を f2c_string
に置換。
call f_c_string(...)
→ call f2c_string(...)
subroutine f_c_string(...)
→ subroutine f2c_string(...)
./configure MPIF90=mpif90 FC=gfortran-15 MPICC=mpicc CC=gcc-15 CPP=cpp-15 FFLAGS="-I/usr/local/include/ -fallow-argument-mismatch"
make pwall
configure
時の対処例:./configure FC=mpif90 CC=mpicc CPP=cpp FFLAGS="-I/usr/local/include/ -fallow-argument-mismatch"
その後 make.inc
を編集し、
CPP=cpp
を
CPP=gcc -E
に変更するとエラーを回避可能。
conda install -c conda-forge mamba
mamba install -c conda-forge qe=7.4
pw.x
などを初めて実行すると macOS によってブロックされる。
7.3.1
wget https://www.quantum-espresso.org/rdm-download/488/v7-3-1/4374c51f0d38b1be967fcf2a3bb298ef/qe-7.3.1-ReleasePack.tar.gz
7.2
wget https://www.quantum-espresso.org/rdm-download/488/v7-2/4374c51f0d38b1be967fcf2a3bb298ef/qe-7.2-ReleasePack.tar.gz
wget https://www.quantum-espresso.org/rdm-download/488/v6-8/4374c51f0d38b1be967fcf2a3bb298ef/qe-6.8-ReleasePack.tgz
6.7
wget https://www.quantum-espresso.org/rdm-download/488/v6-7/4374c51f0d38b1be967fcf2a3bb298ef/qe-6.7-ReleasePack.tgz