Changeset 25243
- Timestamp:
- 07/09/20 20:21:31 (5 years ago)
- 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 24 24 mkdir build install src 25 25 26 # Download from ISSM server26 # Download source 27 27 ${ISSM_DIR}/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/dakota-${VER}-public.src.tar.gz" "dakota-${VER}-public-src.tar.gz" 28 28 -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
r25226 r25243 11 11 # 12 12 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. 14 14 # 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. 16 17 # 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. 18 21 # 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 manager22 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) 20 23 LIBGFORTRAN_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 manager24 LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) 22 25 23 26 export 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 10 10 ## Environment 11 11 # 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. 13 14 # 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. 17 17 # 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 18 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) 21 19 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 22 20 -
issm/trunk-jpl/externalpackages/gmt/install-6.0-linux-static.sh
r24952 r25243 2 2 set -eu 3 3 4 5 # TODO: 6 # - Apply changes made to ./install-6.0-mac-static.sh and customized 7 # configuration files to this file. 8 # 4 9 5 10 ## Constants … … 17 22 ZLIB_ROOT="${PETSC_ROOT}" 18 23 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)24 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` then removing duplicate libs 20 25 NETCDF_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` 21 26 … … 39 44 40 45 # Copy custom configuration files 41 cp ./configs/6.0/ linux/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake42 cp ./configs/6.0/ linux/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules46 cp ./configs/6.0/static/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake 47 cp ./configs/6.0/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules 43 48 44 49 # Configure -
issm/trunk-jpl/externalpackages/gmt/install-6.0-linux.sh
r24919 r25243 28 28 29 29 # Copy custom configuration files 30 cp ./configs/6.0/ linux/cmake/ConfigUser.cmake ./src/cmake30 cp ./configs/6.0/cmake/ConfigUser.cmake ./src/cmake 31 31 32 32 # Configure -
issm/trunk-jpl/externalpackages/gmt/install-6.0-mac.sh
r25203 r25243 28 28 29 29 # Copy custom configuration files 30 cp ./configs/6.0/ linux/cmake/ConfigUser.cmake ./src/cmake30 cp ./configs/6.0/cmake/ConfigUser.cmake ./src/cmake 31 31 32 32 # Configure -
issm/trunk-jpl/externalpackages/netcdf/install-4.7-parallel-static.sh
r25125 r25243 21 21 # 22 22 VER="4.7.2" 23 23 24 CURL_ROOT="${ISSM_DIR}/externalpackages/curl/install" 24 25 HDF5_ROOT="${ISSM_DIR}/externalpackages/petsc/install" … … 29 30 export CC=mpicc 30 31 export 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" 32 export 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 34 export CURLLIB="${CURL_ROOT}/lib/libcurl.a" 35 export HDF5LIB="${HDF5_ROOT}/lib/libhdf5_hl.a ${HDF5_ROOT}/lib/libhdf5.a" 36 export ZLIB="${ZLIB_ROOT}/lib/libz.a" 32 37 33 38 # Download source … … 55 60 --enable-netcdf4 \ 56 61 --disable-testsets \ 57 --disable-examples 62 --disable-examples \ 63 --disable-filter-testing 58 64 59 65 # Compile and install
Note:
See TracChangeset
for help on using the changeset viewer.