【正文】
tar xvf cd ./configure –prefix=/opt/fftw enable float make make install ( /opt/fftw下 ) 2 安裝 mpich 終端輸入 : cd /mnt gunzip tar xvf cd / ./configure –prefix==/opt/mpich make make install (mpich即安裝在 /opt/mpich下 ) 然后配置環(huán)境變量 終端輸入 : cd vi .bashrc 開始編譯為 If [ f /etc/bashrc ]。 then . /etc/bashrc fi expot PATH=/opt/mpich/bin:$PATH export LD_LIBRARY_PATH=/opt/mpich/lib:/opt/fftw/lib:$LD_LIBRARY_PATH 3 安裝 lammps cd /mnt gunzip tar xvf mv lammps5Dec10 lmp cd /lmp/src make yesall make nogpu make nouseratc (幾個特殊的 package:meam,poems,reax,gpu,useratc 需要特別安裝,如下 ) cd /mnt/lmp/lib/meam ls make –f (安裝 meam) cd /mnt/lmp/lib/poems ls make –f ++ cd /mnt/lmp/lib/reax ls make –f (然后對 ) cd /mnt/lmp/src/MAKE vi (按下 i可修改 ) g++ = RedHat Linux box, g++4, gfortran, MPICH2, FFTW SHELL = /bin/sh piler/linker