#! /bin/bash # Intallation script for bigdft in a CENTOS system # Run this script as root to install bigdft/1.7.1 in /share/apps/bigdft/1.7.1 ############################################################ # mandatory requirement: # CC=/share/apps/openmpi-1.8.5/gcc/bin/mpicc # CXX=/share/apps/openmpi-1.8.5/gcc/bin/mpic++ # FC=/share/apps/openmpi-1.8.5/gcc/bin/mpif90 # fftw3 in /share/apps/fftw-3.3.4/gnu # netcdf and etsf already installed in /share/apps/netcdf/4.3.3.1/ and /share/apps/etsf_io/1.0.4/gnu/ (nstall netcdf using the script inst_netcdfxxx from http://www2.fizik.usm.my/configrepo/howto/customise_centos/netcdf/ # Install etsf using the script http://www2.fizik.usm.my/configrepo/howto/customise_centos/etsf/inst_etsf_104_gnu) # atlas lib in /share/apps/atlas-3-10-2/gnu/ # libscalapack.a in /share/apps/atlas-3-10-2/gnu/lib # libxc in /share/apps/libxc-2.1.2 ### scalapack, bigdft, libxc, wannier90, gsl, atompaw cd /share/apps/configrepo mkdir bigdft-1.7.1-build cd bigdft-1.7.1-build wget http://www2.fizik.usm.my/configrepo/howto/abinit/bigdft-1.7.1.tar.bz2 tar xjf bigdft-1.7.1.tar.bz2 mv bigdft-1.7.1.tar.bz2 /share/apps/configrepo cd bigdft-1.7.1 CC=/share/apps/openmpi-1.8.5/gcc/bin/mpicc CXX=/share/apps/openmpi-1.8.5/gcc/bin/mpic++ FC=/share/apps/openmpi-1.8.5/gcc/bin/mpif90 F77=/share/apps/openmpi-1.8.5/gcc/bin/mpif77 ./configure CC=$CC CXX=$CXX FC=$FC F77=$F77 --prefix=/share/apps/bigdft/1.7.1 --enable-dgemmsy --with-etsf-io --with-etsf-io-path="/share/apps/etsf_io/1.0.4" --with-netcdf-path=/share/apps/netcdf/4.3.3.1 --with-ext-linalg-path="-L/share/apps/atlas-3-10-2/gnu/lib" --with-ext-linalg="-lscalapack -llapack -lf77blas -lcblas -latlas" CPPFLAGS="-I/share/apps/atlas-3-10-2/gnu/include -I/share/apps/atlas-3-10-2/gnu/include/atlas" --with-etsf-io-path="-L/share/apps/etsf_io/1.0.4/lib -I/share/apps/etsf_io/1.0.4/gnu/include/gcc" --with-libxc-libs="-L/share/apps/libxc-2.1.2/lib -lxc" --with-libxc-incs="-I/share/apps/libxc-2.1.2/include" #--with-archives --with-archives-path=/share/apps/estools/libarchive/3.1.2 make make install