From c276408a1916a72d4b15157b5082e734e67415d9 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Thu, 4 Aug 2022 19:59:44 +0800 Subject: [PATCH] =?UTF-8?q?odbc=E7=BC=96=E8=AF=91=E5=89=8D=E7=8E=B0?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=8E=9F=E7=94=9F=E7=9A=84unixODBC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index 0487576..5b03ce2 100755 --- a/build.sh +++ b/build.sh @@ -136,6 +136,10 @@ declare ODBC_INSTALL_DIR="${BUILD_DIR}/odbc" declare ERR_MKGS_FAILED=1 declare MKGS_OK=0 +if [ "$UNIX_ODBC"X = X ]; then + UNIX_ODBC="${LOCAL_DIR}/third_party/unixodbc/install_comm/unixODBC-2.3.9" +fi + SERVERLIBS_PATH="${serverlib_dir}" ################################### @@ -182,6 +186,10 @@ function install_odbc() { cd ${LOCAL_DIR} + cd ${LOCAL_DIR}/third_party/unixodbc/ + sh ./build_unixodbc.sh -m build >> "$LOG_FILE" 2>&1 + cd ${LOCAL_DIR} + export GAUSSHOME=$SERVERLIBS_PATH export LD_LIBRARY_PATH=$SERVERLIBS_PATH/lib:$LD_LIBRARY_PATH