Recipe to compile abinit on UBUNTU 10.04/12.04 (64bits)

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
User avatar
admin
Site Admin
Posts: 33
Joined: Thu Sep 17, 2009 9:49 am

Recipe to compile abinit on UBUNTU 10.04/12.04 (64bits)

Post by admin » Tue Nov 01, 2011 11:08 am

Recipe for a Core-i7 / ubuntu 10.04 or 12.04 (64bits) / abinit 6.8.x or better :

from a fresh install :

1) installation of theses packages :

Code: Select all

apt-get -y install gcc g++ gfortran
apt-get -y install patch
apt-get -y install libnetcdf-dev
apt-get -y install fftw3 libfftw3-dev

apt-get -y install libatlas-base-dev  libatlas3gf-base
apt-get -y install liblapack3gf liblapack-dev
apt-get -y install libblas3gf libblas-dev

apt-get -y install openmpi-bin openmpi-common libopenmpi-dev


2) download of abinit sources ( http://www.abinit.org )

Code: Select all

cd /tmp
wget http://ftp.abinit.org/abinit-6.8.2.tar.gz
tar xzf abinit-6.8.2.tar.gz
cd abinit-6.8.2


3) create a "ubuntu.ac" file :

Code: Select all

prefix="/usr/local"
enable_mpi="yes"
enable_mpi_io="yes"
with_mpi_prefix="/usr"
with_netcdf_incs="-I/usr/include"
with_netcdf_libs="-L/usr/lib64 -lnetcdf -lnetcdff"
with_fft_flavor="fftw3"
with_fft_incs="-I/usr/include/"
with_fft_libs="-L/usr/lib64 -lfftw3"
with_linalg_flavor="atlas"
with_linalg_libs="-L/usr/lib64 -llapack -lf77blas -lcblas -latlas"
with_dft_flavor="atompaw+bigdft+libxc+wannier90"
enable_gw_dpc="yes"
enable_maintainer_checks="no"
enable_test_timeout="yes"
enable_gui_build="no"


4) make abinit & co

Code: Select all

 ./configure --with-config-file="./ubuntu.ac"
make mj4
make install


abinit & binaries are in "/usr/local/bin" folder ( you can the destination folder with 'prefix=' option)
Last edited by pouillon on Sun Apr 17, 2016 11:21 am, edited 4 times in total.
Reason: update for ubuntu 12.04

Locked