The latest verion of the download can be downloaded using the wget command
wget http://lammps.sandia.gov/tars/lammps-stable.tar.gz
or download from the LAMMPS website from Sandia. This downloads a GNU zipped tarball. If you have setup your computer as I recommended in 1.2, then we will create a unique place to store the source code and related materials.
$ mkdir ~/usr/local/lammps
$ mv lammps-stable.tar.gz ~/usr/local/lammps/
$ cd ~/usr/local/lammps
$ gunzip lammps-stable.tar.gz
$ tar -xvf lammps-stable.tar
You will likely not have the appropriate libraries on a fresh install on Ubuntu, to install on ubuntu you'll need to download the necessary development libraries.
$ sudo apt-get install build-essential
$ sudo apt-get mpich
$ sudo apt-get install fftw2
$ sudo apt-get install fftw-dev
On Hipergator you need to load the environment to compile. The following commands will give you a access to a development node with 8 processors
$ module load ufrc
$ srundev -n 8 --time=04:00:00
For compatibility and consistency of the toolchain, for vasp and lammps. This will be the compile chain that you want.
$ module load intel/2017.1.132
$ module load openmpi/1.10.2
On all platforms
If you are going to be using my PYPOSPACK software package, you will need a serial version of LAMMPS. This is necessary so that LAMMPS doesn't confused by MPI communications. We need to move the tarball to the following
$ cd ~/usr/local/lammps/lammps-11Aug17/src
$ make serial
once the lammps file is created
$ ln -s $(cd ~/usr/local/lammps/lammps-31Mar17/src;pwd)/lmp_serial ~/bin/lmp_serial
edit your .bashrc
export LAMMPS_SERIAL_BIN=$(~/bin/;pwd)/lmp_serial
export LAMMPS_BIN=$LAMMPS_SERIAL_BIN