VASP on Ubuntu
This guide will help the user understand how to compile, install, and use VASP on their own Ubuntu workstation. If you are using another platform, please refer to the appropriate documentation or contact Benjamin Alldritt for assistance.
Step-by-step guide
Ubuntu 12.04
Install the required packages:
sudo apt-get install build-essential gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-devDownload the latest version of the VASP source and libraries and unpack each into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/vasp
cd ${HOME}/software/vasp
tar -xvzf vasp.5.3.5.tar.gz
tar -xvzf vasp.5.lib.tar.gzBuild the VASP library file.
cd ${HOME}/software/vasp/vasp.5.lib
cp makefile.linux_gfortran Makefile
make
cd ${HOME}/software/vasp/vasp.5.3Download the Makefile into the vasp.5.3 folder and build VASP.
makeRun VASP to ensure that the program compiled correctly.
./vasp
Ubuntu 14.04
Install the required packages:
sudo apt-get install build-essential gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-devDownload the latest version of the VASP source and libraries and unpack each into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/vasp
cd ${HOME}/software/vasp
tar -xvzf vasp.5.3.5.tar.gz
tar -xvzf vasp.5.lib.tar.gzBuild the VASP library file.
cd ${HOME}/software/vasp/vasp.5.lib
cp makefile.linux_gfortran Makefile
make
cd ${HOME}/software/vasp/vasp.5.3Download the Makefile into the vasp.5.3 folder, VASP and build.
patch < vasp-5.3.5.patch
makeRun VASP to ensure that the program compiled correctly.
./vasp
Related articles
VASP compiler status (NSC, Sweden): https://www.nsc.liu.se/~pla/vaspstatus/
Compiling on Ubuntu: https://www.nsc.liu.se/~pla/blog/2013/11/05/compile-vasp-on-ubuntu/
General compile notes: https://www.nsc.liu.se/~pla/vaspcompile/
VASP Test suite: https://www.nsc.liu.se/~pla/vasptest/
MPI/OpenMP hybrid: http://cms.mpi.univie.ac.at/wiki/index.php/Hybrid_openMPI/openMP_parallelization
Unknown macro: contentbylabel. Click on this message for details.