Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2022-11-09 06:19:50 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2022-11-09 06:19:50 +0300
commit051f11bb6e723e9ccc624abdaa69e5d8750ffa01 (patch)
treec671b7893f8623c23434eb5f10586d6c8e2ff9b5
parent0c63caa547a0aa15ac5326158eed232823aff992 (diff)
Update install-uvtools.sh
-rw-r--r--Scripts/install-uvtools.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/Scripts/install-uvtools.sh b/Scripts/install-uvtools.sh
index 641aebb..8c07c09 100644
--- a/Scripts/install-uvtools.sh
+++ b/Scripts/install-uvtools.sh
@@ -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)"