Changeset 23426
- Timestamp:
- 10/15/18 18:45:13 (6 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/dakota/install-6.2-macosx64.sh
r23425 r23426 22 22 rm -rf dakota-${DAK_VER}.0.src 23 23 24 # Set up Dakota cmake variables and config 25 DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build 26 DAK_INSTALL=$ISSM_DIR/externalpackages/dakota/install 27 DAK_SRC=$ISSM_DIR/externalpackages/dakota/src 24 # Set up Dakota and CMake variables 25 export DAK_PATH=$ISSM_DIR/externalpackages/dakota 26 27 export DAK_BUILD=$DAK_PATH/build 28 export DAK_INSTALL=$DAK_PATH/install 29 export DAK_SRC=$DAK_PATH/src 28 30 export MPIHOME=$ISSM_DIR/externalpackages/mpich/install 29 31 export BOOST_ROOT=$ISSM_DIR/externalpackages/boost/install … … 38 40 patch src/packages/pecos/src/pecos_global_defs.hpp configs/$DAK_VER/pecos_global_defs.hpp.patch 39 41 40 # Configure dakota 41 # Set your local gcc compiler here 42 # Configure and build Dakota 42 43 cd $DAK_BUILD 43 44 cmake \ … … 58 59 $DAK_SRC 59 60 60 # Snowleopard: Mpi should be made with these compilers61 #-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \62 #-DCMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran \63 64 #Compile and install dakota65 61 if [ $# -eq 0 ]; 66 62 then … … 71 67 make -j $1 install 72 68 fi 69 70 # Set paths and library paths 71 export PATH=$DAK_INSTALL/bin:$DAK_INSTALL/test:$PATH 72 export DYLD_LIBRARY_PATH=$DAK_INSTALL/lib:$DAK_INSTALL/bin:$DYLD_LIBRARY_PATH -
issm/trunk-jpl/scripts/download_external_package.bash
r23418 r23426 1 1 #!/bin/bash 2 2 # 3 # download_external_package.bash 4 # Generally, used to download a hosted file from a URL 5 # URL - Location of file to download 6 # file - File to write to (including path) 7 # usage: download_external_package.bash URL file 3 8 4 9 ## Constants 5 10 # 6 ERR_NO_GET_CMD="No supported file download command was found" 7 ERR_NUM_ARGS="Illegal number of args" 8 ERR_USAGE="" 11 MSG_ERR_NO_GET_CMD="No supported file download command was found" 12 MSG_USAGE="usage: $(basename ${0}) [-h] URL file 13 URL : Location of file to download 14 file : File to write to (including path)" 9 15 10 16 ## Variables … … 13 19 URL="" 14 20 15 ## Check number of args 21 ## Check that number of args is 2 (note that this also handles case where user 22 # explicitly requests help) 16 23 # 17 24 if [ $# != 2 ] 18 25 then 19 echo $ERR_NUM_ARGS 26 echo "$MSG_USAGE" 27 exit 0 20 28 fi 21 29 … … 37 45 if [ ! -z `which wget` ] 38 46 then 39 wget -- no-check-certificate-O $OUT_FILE $URL47 wget --quiet -O $OUT_FILE $URL 40 48 elif [ ! -z `which curl` ] 41 49 then 42 curl $URL -o $OUT_FILE50 curl --silent $URL -o $OUT_FILE 43 51 else 44 echo $ ERR_NO_GET_CMD52 echo $MSG_ERR_NO_GET_CMD 45 53 exit 0 46 54 fi
Note:
See TracChangeset
for help on using the changeset viewer.