diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index 81de3e1..98ccf2a 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -85,12 +85,8 @@ check_prerequisites() { # check_version "2.6.2" "`uname -r`" "KERNEL" check_version "3.0" "$BASH_VERSION" "BASH" check_version "3.0.1" "`gcc -dumpversion`" "GCC" - if [ -f /lib/libc.so.6 ]; then - libcLoc=/lib; - elif [ -f /lib64/libc.so.6 ]; then - libcLoc=/lib64; - fi; - libcVer="`/${libcLoc}/libc.so.6 | head -n1`" + libcLib="`find /lib /lib64 -name libc.so.6 -print`" + libcVer="`/${libcLib} | head -n1`" libcVer="${libcVer##*version }" check_version "2.2.5" ${libcVer%%,*} "GLIBC" check_version "2.12" "$(ld --version | head -n1 | awk '{print $NF}')" "BINUTILS"