diff --git a/tools/linux_packaging/stage2.run.in b/tools/linux_packaging/stage2.run.in index 470ecccc07..25fef8d4f7 100755 --- a/tools/linux_packaging/stage2.run.in +++ b/tools/linux_packaging/stage2.run.in @@ -488,8 +488,8 @@ echo "" LIB_ERROR="F" LD_PATH=`pwd`/${BUNDLE_DIR}/lib -# check the main App -LDD_RESULT=$(LD_LIBRARY_PATH=${LD_PATH} ldd ${BUNDLE_DIR}/*/${PGM_NAME_LOWER}-* 2>&1 > /dev/null | grep -v "no version information") +# check the main App(s) +LDD_RESULT=$(LANG=C LD_LIBRARY_PATH=${LD_PATH} ldd ${BUNDLE_DIR}/*/${PGM_NAME_LOWER}-* 2>&1 | grep "not found/") if [ -n "$LDD_RESULT" ]; then @@ -502,7 +502,7 @@ LIB_FILES=$(find ${BUNDLE_DIR}/lib -name "*.so" -type f) for path in $LIB_FILES do - LDD_RESULT=$(LD_LIBRARY_PATH=${LD_PATH} ldd $path 2>&1 > /dev/null | grep -v "no version information") + LDD_RESULT=$(LANG=C LD_LIBRARY_PATH=${LD_PATH} ldd $path 2>&1 | grep "not found") if [ -n "$LDD_RESULT" ]; then echo "$LDD_RESULT"