Super straight forward guide to install Siesta version >=5.0.0 on Ubuntu (because windows... why?).
The full installation manual can be found here.
-
Install
gfortran
sudo apt install build-essential gfortran
-
Install an MPI implementation: for example
openmpi
sudo apt install libopenmpi-dev openmpi-bin
-
Install
blas
,lapack
andscalapack
librariessudo apt install libblas-dev liblapack-dev libscalapack-mpi-dev
-
Install
HDF5
andNetCDF
input/output librariessudo apt install libhdf5-dev libhdf5-mpi-dev libnetcdf-dev libnetcdff-dev netcdf-bin
-
Install
curl
and/orwget
sudo apt install curl wget
-
Siesta needs
CMake
>= 3.17. To install CMake just typesudo apt install cmake
Check you CMake version by typing
CMake --version
. If this version is not up to date, you have two options:Install via snap
-
Uninstall the current CMake
sudo apt purge --auto-remove cmake
-
Simply run
sudo snap install cmake --classic
the
--classic
flag is necessary because cmake uses a classic snap confinement.
Install manually
-
Uninstall the current CMake
sudo apt purge --auto-remove cmake
-
Download the latest binary release from cmake.org. For example, at the time of writing, this is
cmake-3.27.7-linux-x86_64.sh
. -
Copy the script file in some meaningfull folder
cp cmake-3.27.7-linux-x86_64.sh /home/user/cmake/
Of course, replace the name with your cmake version.
-
Execute the script
bash cmake-3.27.7-linux-x86_64.sh
and follow the instructions: accept license yes, version folder yes.
-
Export the
/home/user/cmake/bin
to PATH or link the binaries to the/usr/local/bin
.
-
- Download the latest release in the
.tar.gz
format and extract the content to/home/user/siesta/
. - Move to
/home/user/siesta/siesta-5.0.0
(depending on your version) and runcmake
After one week of blasphemies, I didn't manage to install siesta.
Some flook problems, lua.c something, <readline/readline.h> not found ???
Siesta go to hell! I'll just stick with quantum-espresso.