Changeset 25243


Ignore:
Timestamp:
07/09/20 20:21:31 (5 years ago)
Author:
jdquinn
Message:

CHG: New installation scripts in support of macOS Solid Earth binaries build.

Location:
issm/trunk-jpl/externalpackages
Files:
11 added
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh

    r24832 r25243  
    2424mkdir build install src
    2525
    26 #Download from ISSM server
     26# Download source
    2727${ISSM_DIR}/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/dakota-${VER}-public.src.tar.gz" "dakota-${VER}-public-src.tar.gz"
    2828
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh

    r25226 r25243  
    1111#
    1212
    13 # Find libgfortran and libgcc so we do not have to hardcode them
     13# Find libgfortran and libgcc so we do not have to hardcode them.
    1414#
    15 # NOTE: Assumes user installed gfortran via Homebrew
     15# Should retrieve a copy of gfortran that is compiled from source before
     16# returning one that is installed via package manager.
    1617#
    17 # TODO: Refactor this to work with other gfortran installations.
     18# TODO:
     19# - Test if -static-libgfortran flag will avoid all of this.
     20# - Otherwise, refactor this to work with other gfortran installations.
    1821#
    19 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
     22LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
    2023LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    21 LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
     24LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
    2225
    2326export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh

    r25226 r25243  
    1010## Environment
    1111#
    12 # Find libgfortran and so we do not have to hardcode it
     12
     13# Find libgfortran so that we do not have to hardcode it.
    1314#
    14 # NOTE:
    15 # - Assumes user installed gfortran via Homebrew.
    16 # - Searches for libgfortran.a as it is easier to find it.
     15# Should retrieve a copy of gfortran that is compiled from source before
     16# returning one that is installed via package manager.
    1717#
    18 # TODO: Refactor this to work with other gfortran installations.
    19 #
    20 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
     18LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
    2119LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    2220
  • issm/trunk-jpl/externalpackages/gmt/install-6.0-linux-static.sh

    r24952 r25243  
    22set -eu
    33
     4
     5# TODO:
     6# - Apply changes made to ./install-6.0-mac-static.sh and customized
     7#       configuration files to this file.
     8#
    49
    510## Constants
     
    1722ZLIB_ROOT="${PETSC_ROOT}"
    1823
    19 GDAL_LIBRARY="${GDAL_ROOT}/lib/libgdal.a;${NETCDF_ROOT}/lib/libnetcdf.a;${HDF5_ROOT}/lib/libhdf5_hl.a;${HDF5_ROOT}/lib/libhdf5.a;${PROJ_ROOT}/lib/libproj.a;${ZLIB_ROOT}/lib/libz.a;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;${CURL_ROOT}/lib/libcurl.a;/usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a;/usr/lib/x86_64-linux-gnu/libsqlite3.a;/usr/lib/x86_64-linux-gnu/libexpat.a;/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25;" # Determined by running `$GDAL_ROOT/bin/gdal-config --dep-libs`, removing duplicate libs, then adding libmpicxx as, otherwise, various symbols in libgdal are undefined (compiled with mpicxx)
     24GDAL_LIBRARY="${GDAL_ROOT}/lib/libgdal.a;${NETCDF_ROOT}/lib/libnetcdf.a;${HDF5_ROOT}/lib/libhdf5_hl.a;${HDF5_ROOT}/lib/libhdf5.a;${PROJ_ROOT}/lib/libproj.a;${ZLIB_ROOT}/lib/libz.a;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;${CURL_ROOT}/lib/libcurl.a;/usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a;/usr/lib/x86_64-linux-gnu/libsqlite3.a;/usr/lib/x86_64-linux-gnu/libexpat.a;/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25;" # Determined by running `$GDAL_ROOT/bin/gdal-config --dep-libs` then removing duplicate libs
    2025NETCDF_LIBRARY="${NETCDF_ROOT}/lib/libnetcdf.a;/usr/lib/x86_64-linux-gnu/libm.so;${CURL_ROOT}/lib/libcurl.a;${HDF5_ROOT}/lib/libhdf5_hl.a;${HDF5_ROOT}/lib/libhdf5.a;${ZLIB_ROOT}/lib/libz.a;/usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a;/usr/lib/x86_64-linux-gnu/libdl.so" # Determined by running `$NETCDF_ROOT/bin/nc-config --libs`
    2126
     
    3944
    4045# Copy custom configuration files
    41 cp ./configs/6.0/linux/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
    42 cp ./configs/6.0/linux/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
     46cp ./configs/6.0/static/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
     47cp ./configs/6.0/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
    4348
    4449# Configure
  • issm/trunk-jpl/externalpackages/gmt/install-6.0-linux.sh

    r24919 r25243  
    2828
    2929# Copy custom configuration files
    30 cp ./configs/6.0/linux/cmake/ConfigUser.cmake ./src/cmake
     30cp ./configs/6.0/cmake/ConfigUser.cmake ./src/cmake
    3131
    3232# Configure
  • issm/trunk-jpl/externalpackages/gmt/install-6.0-mac.sh

    r25203 r25243  
    2828
    2929# Copy custom configuration files
    30 cp ./configs/6.0/linux/cmake/ConfigUser.cmake ./src/cmake
     30cp ./configs/6.0/cmake/ConfigUser.cmake ./src/cmake
    3131
    3232# Configure
  • issm/trunk-jpl/externalpackages/netcdf/install-4.7-parallel-static.sh

    r25125 r25243  
    2121#
    2222VER="4.7.2"
     23
    2324CURL_ROOT="${ISSM_DIR}/externalpackages/curl/install"
    2425HDF5_ROOT="${ISSM_DIR}/externalpackages/petsc/install"
     
    2930export CC=mpicc
    3031export CPPFLAGS="-I${CURL_ROOT}/include -I${HDF5_ROOT}/include -I${ZLIB_ROOT}/include"
    31 export LIBS="${CURL_ROOT}/lib/libcurl.a ${HDF5_ROOT}/lib/libhdf5_hl.a ${HDF5_ROOT}/lib/libhdf5.a ${ZLIB_ROOT}/lib/libz.a /usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a -L/usr/lib/x86_64-linux-gnu -ldl"
     32export LIBS="/usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a -L/usr/lib/x86_64-linux-gnu -ldl"
     33
     34export CURLLIB="${CURL_ROOT}/lib/libcurl.a"
     35export HDF5LIB="${HDF5_ROOT}/lib/libhdf5_hl.a ${HDF5_ROOT}/lib/libhdf5.a"
     36export ZLIB="${ZLIB_ROOT}/lib/libz.a"
    3237
    3338# Download source
     
    5560        --enable-netcdf4 \
    5661        --disable-testsets \
    57         --disable-examples
     62        --disable-examples \
     63        --disable-filter-testing
    5864
    5965# Compile and install
Note: See TracChangeset for help on using the changeset viewer.