fix: Add LD_LIBRARY_PATH when local start milvus (#29287)

#28165

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
pull/29291/head
zhagnlu 2023-12-19 10:08:41 +08:00 committed by GitHub
parent 4eddcc2113
commit 56d7225673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
ROOT_DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
source ${ROOT_DIR}/scripts/setenv.sh
MILVUS_CORE_DIR="${ROOT_DIR}/internal/core"
MILVUS_CORE_UNITTEST_DIR="${MILVUS_CORE_DIR}/output/unittest"

View File

@ -24,6 +24,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
else
echo "WARN: Cannot find $LIBJEMALLOC"
fi
export LD_LIBRARY_PATH=$PWD/internal/core/output/lib/:$LD_LIBRARY_PATH
fi
echo "Starting rootcoord..."

View File

@ -24,6 +24,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
else
echo "WARN: Cannot find $LIBJEMALLOC"
fi
export LD_LIBRARY_PATH=$PWD/internal/core/output/lib/:$LD_LIBRARY_PATH
fi
echo "Starting standalone..."