level 6
该方法不用下载lammps,mpi,fftw,不用修改Makefile.
2016年11月05日 02点11分
1
level 6
如果是刚接触linux系统的小白,安装一般都会报错,并且根本不知道怎么解决的。可以试试,我是亲身体会的。安装报错后请了一位公司的linux编程工程师来也是用了一晚上才解决了。慎入。。。
2016年11月05日 02点11分
2
level 6
下面是小白专用的方法,四步搞定。
首先声明,此方法只针对ubuntu,14—04,64位,该版本之后的都可以;
ps:需要root权限,并且联网。
1、更新sudo apt-get update
2、安装gfortran: $sudo apt-get install gfortran
3、sudo add-apt-repository ppa:gladky-anton/lammps sudo apt-get update
4、sudo apt-get install lammps-daily
就OK了。
命令:mpirun -np 4 lammps-daily < in.lj # 4是并行的核数
后面的可以看看,不可的话也不影响使用。这是lammps官方给出的安装方法,快捷有效!
To get a copy of the current documentation and examples:
sudo apt-get install lammps-daily-doc
which will download the doc files in /usr/share/doc/lammps-daily-doc/doc and example problems in /usr/share/doc/lammps-doc/examples.
Note that you may still wish to download the tarball to get potential files and auxiliary tools.
To un-install LAMMPS, do the following:
sudo apt-get remove lammps-daily
Note that the lammps-daily executable is built with the following sequence of make commands, as if you had done the same with the unpacked tarball files in the src directory:
make yes-all; make no-lib; make openmpi
Thus it builds with FFTW3 and OpenMPI.
2016年11月05日 02点11分
3
错误:需要单个软件仓库作为参数 请问楼主应该怎么解决呢?
2018年04月04日 01点04分
level 4
楼主,第三步运行说sudo:add-apt-resository :command not found
2017年10月29日 03点10分
5