fix zlib temp install dir and library checker

This commit is contained in:
Fabian Posch 2025-01-09 15:10:06 +01:00
parent 32ef82befe
commit 404426d0d6
2 changed files with 7 additions and 3 deletions

View file

@ -4,6 +4,6 @@ export ACT_HOME=~/.act_install
export PATH=$ACT_HOME/bin::$PATH export PATH=$ACT_HOME/bin::$PATH
export LD_LIBRARY_PATH=$ACT_HOME/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$ACT_HOME/lib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=~/zlib:$LD_LIBRARY_PATH # export LD_LIBRARY_PATH=~/.zlib:$LD_LIBRARY_PATH
echo ACT_HOME is set to $ACT_HOME echo ACT_HOME is set to $ACT_HOME

View file

@ -19,8 +19,12 @@ check_library_dependency()
if ldconfig -p | grep -q $1; then if ldconfig -p | grep -q $1; then
echo "found" echo "found"
else else
echo "missing" if [[ ":$LD_LIBRARY_PATH:" == *":$LIBRARY_NAME:"* ]]; then
missing="$1 " echo "found"
else
echo "missing"
missing="$1 "
fi
fi fi
} }