From ecc3af2ef5bbf735aaea5e7b63f95bd74f626f7d Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Tue, 28 Sep 2021 14:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dodbc=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 763373b..65e44fe 100755 --- a/build.sh +++ b/build.sh @@ -100,14 +100,6 @@ while [ $# -gt 0 ]; do serverlib_dir=$2 shift 2 ;; - -ud|--unixodbc_dir) - if [ "$2"X = X ]; then - echo "no given unixodbc directory values" - exit 1 - fi - UNIX_ODBC=$2 - shift 2 - ;; *) echo "Internal Error: option processing error: $1" 1>&2 @@ -139,6 +131,7 @@ SERVERLIBS_PATH="${serverlib_dir}" ################################## COMPLIE_TYPE="comm" echo "[makeodbc] $(date +%y-%m-%d' '%T): Work root dir : ${LOCAL_DIR}" +UNIX_ODBC="${LOCAL_DIR}/third_party/unixodbc/install_comm/unixODBC-2.3.9" ####################################################################### # Print log. ####################################################################### @@ -176,6 +169,10 @@ function clean_environment() ####################################################################### function install_odbc() { + echo "Begin make odbc..." >> "$LOG_FILE" 2>&1 + + cd ${LOCAL_DIR}/third_party/unixodbc/ + sh ./build_unixodbc.sh -m build >> "$LOG_FILE" 2>&1 cd ${LOCAL_DIR} export GAUSSHOME=$SERVERLIBS_PATH