This was all done on my MacBook running on macOS Sequoia 15.5 with Apple M3 Pro chip
- Go to quantum espresso website and get the latest tar ball file
- Unpack in whatever directory you wish
- Make sure you have
gnnFortran compiler installed. I downloaded this withhomebrew. - While in the
qeroot directory run
with$ mkdir build $ cd build $ cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 <path to QE source directory> $ make [-jN]..in place of<path to QE source directory cmakewill configure and install all the dependencies and packages. This took round 10 minutes.
Some issues I had initially is using make. I kept getting
1 warning generated.
cc: error: no input files
make[1]: *** [laxlib.fh] Error 1
make: *** [libla] Error 1
I’m not sure if this is a breaking issue, so I tried cmake instead.
- To get the binaries in
~/bin, you mustcdintobuildand runsudo cmake --install . --prefix ../This copies the binaries from~/buld/bininto~/bin. The first example I ran looked for the binaries there and couldn’t find them