From f4272212cb704b3eeabb101a2119c3441bc2d0db Mon Sep 17 00:00:00 2001 From: bmaltais Date: Fri, 23 Jun 2023 14:51:05 -0400 Subject: [PATCH] Add warning for LD_LIBRARY_PATH --- gui.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui.sh b/gui.sh index 73ddffe4a..619cb91f1 100755 --- a/gui.sh +++ b/gui.sh @@ -16,6 +16,13 @@ cd "$SCRIPT_DIR" || exit 1 # Activate the virtual environment source "$SCRIPT_DIR/venv/bin/activate" || exit 1 +# Check if LD_LIBRARY_PATH environment variable exists +if [[ -z "${LD_LIBRARY_PATH}" ]]; then + echo "Warning: LD_LIBRARY_PATH environment variable is not set." + echo "Certain functionalities like 8bit based optimizers may not work correctly." + echo "Please ensure that the required libraries are properly configured." +fi + # Determine the requirements file based on the system if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$(uname -m)" == "arm64" ]]; then