changeset 29186:11ffcebc19cf

check for missing libstdc++ this version of the check assumes that we run on a system with apt-get installed and configured. We should probably check that this is actually true. Or more ideally add support for yum for fedora systems.
author siretart
date Thu, 23 Apr 2009 20:59:46 +0000
parents a99dc500088f
children e227d7137dc0
files TOOLS/binary_codecs.sh
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/binary_codecs.sh	Thu Apr 23 20:56:59 2009 +0000
+++ b/TOOLS/binary_codecs.sh	Thu Apr 23 20:59:46 2009 +0000
@@ -159,6 +159,19 @@
             n=1
           fi
         done
+      needlibstd=no
+      test "$dpkgarch" = "powerpc" && needlibstd=yes
+      test "$dpkgarch" = "i386" && needlibstd=yes
+      if test "$needlibstd" = "yes" && ! test -r /usr/lib/libstdc++.so.5 ; then
+	echo "Warning: you need to install libstdc++ 5 libraries"
+	echo -n "Do it now? "
+	read R
+	case $R in
+         y*) apt-get install libstdc++5 ;;
+          *) echo "If you change your mind, use the command"
+             echo "  apt-get install libstdc++5" ;;
+        esac
+      fi
     else
       echo "Sorry, no codecs for your arch '$dpkgarch'. Sorry dude :("
       exit 1