mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Update install-uvtools.sh
This commit is contained in:
@@ -195,6 +195,23 @@ fi
|
||||
#############
|
||||
echo "- Detected: $osVariant $arch"
|
||||
|
||||
requiredlddversion="2.32"
|
||||
lddversion="$(ldd --version | awk '/ldd/{print $NF}')"
|
||||
|
||||
|
||||
if [ $(version $lddversion) -lt $(version $requiredlddversion) ]; then
|
||||
echo ""
|
||||
echo "##########################################################"
|
||||
echo "Error: Unable to auto install the latest version."
|
||||
echo "ldd version: $lddversion detected, but requires at least version $requiredlddversion."
|
||||
echo "Solutions:"
|
||||
echo "- Manually download and run older version: https://github.com/sn4k3/UVtools/releases/tag/v3.7.2"
|
||||
echo "- Upgrade your system to the most recent version"
|
||||
echo "- Try to upgrade glibc to at least $requiredlddversion (Search about this as it can break your system)"
|
||||
echo "##########################################################"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ -z "$(ldconfig -p | grep libpng)" -o -z "$(ldconfig -p | grep libgdiplus)" -o -z "$(ldconfig -p | grep libgeotiff)" -o -z "$(ldconfig -p | grep libavcodec)" ]; then
|
||||
echo "- Missing dependencies found, installing..."
|
||||
sudo bash -c "$(curl -fsSL $dependencies_url)"
|
||||
|
||||
Reference in New Issue
Block a user