Skip to content

Instantly share code, notes, and snippets.

@jamal919
Created April 27, 2018 21:29
Show Gist options
  • Save jamal919/574d3e6a3fe399da5ee882d9d624ecbc to your computer and use it in GitHub Desktop.
Save jamal919/574d3e6a3fe399da5ee882d9d624ecbc to your computer and use it in GitHub Desktop.
Delft3D Ubuntu Build Script
#!/bin/bash
# Tools and Exports
export ACLOCAL=/usr/bin/aclocal
export AUTOMAKE=/usr/bin/automake
export AUTOHEADER=/usr/bin/autoheader
export AUTOCONF=/usr/bin/autoconf
export LIBTOOLIZE=/usr/bin/libtoolize
export MPIFC="/usr/bin/mpif90"
export MPILIBS="-L/usr/lib/x86_64-linux-gnu"
export MPI_INCLUDES="-I/usr/include/mpich"
export MPILIBS_ADDITIONAL="-L/usr/lib/x86_64-linux-gnu -lmpichfort -lmpich"
#export PKG_CONFIG_PATH="/usr/lib64/pkgconfig":$PKG_CONFIG_PATH
export NETCDF_FORTRAN_LIBS="-L/usr/lib/x86_64-linux-gnu"
export NETCDF_FORTRAN_CFLAGS="-L/usr/include"
export NETCDF_LIBS="-L/usr/lib/x86_64-linux-gnu"
export NETCDF_CFLAGS="-I/usr/include"
export LD_LIBRARY_PATH="/lib/gcc/x86_64-redhat-linux/4.8.2":"/usr/lib/x86_64-linux-gnu":/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
# Building
./clean.sh
./build_gnu.sh -64bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment