fix zlib temp install dir and library checker
This commit is contained in:
parent
32ef82befe
commit
404426d0d6
2 changed files with 7 additions and 3 deletions
|
|
@ -4,6 +4,6 @@ export ACT_HOME=~/.act_install
|
|||
export PATH=$ACT_HOME/bin::$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
|
||||
|
|
|
|||
|
|
@ -19,8 +19,12 @@ check_library_dependency()
|
|||
if ldconfig -p | grep -q $1; then
|
||||
echo "found"
|
||||
else
|
||||
echo "missing"
|
||||
missing="$1 "
|
||||
if [[ ":$LD_LIBRARY_PATH:" == *":$LIBRARY_NAME:"* ]]; then
|
||||
echo "found"
|
||||
else
|
||||
echo "missing"
|
||||
missing="$1 "
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue