|
@@ -176,26 +176,39 @@ if [ -e /usr/bin/awk ];
|
|
|
then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
|
|
|
else echo "awk not found"; fi
|
|
|
|
|
|
-gcc --version | head -n1
|
|
|
-g++ --version | head -n1
|
|
|
-ldd --version | head -n1 | cut -d" " -f2- # glibc version
|
|
|
-grep --version | head -n1
|
|
|
-gzip --version | head -n1
|
|
|
+gcc - -version | head -n1
|
|
|
+g++ - -version | head -n1
|
|
|
+ldd - -version | head -n1 | cut -d" " -f2- # glibc version
|
|
|
+grep - -version | head -n1
|
|
|
+gzip - -version | head -n1
|
|
|
cat /proc/version
|
|
|
-m4 --version | head -n1
|
|
|
-make --version | head -n1
|
|
|
-patch --version | head -n1
|
|
|
+m4 - -version | head -n1
|
|
|
+make - -version | head -n1
|
|
|
+patch - -version | head -n1
|
|
|
echo Perl `perl -V:version`
|
|
|
-sed --version | head -n1
|
|
|
-tar --version | head -n1
|
|
|
-xz --version | head -n1
|
|
|
+sed - -version | head -n1
|
|
|
+tar - -version | head -n1
|
|
|
+xz - -version | head -n1
|
|
|
|
|
|
echo 'main(){}' > dummy.c && g++ -o dummy dummy.c
|
|
|
if [ -x dummy ]
|
|
|
then echo "g++ compilation OK";
|
|
|
else echo "g++ compilation failed"; fi
|
|
|
-rm -f dummy.c dummy
|
|
|
+rm -f dummy.c dummy</literal>
|
|
|
+<!--
|
|
|
+for lib in lib{gmp,mpfr,mpc}.la; do
|
|
|
+ echo $lib: $(if find /usr/lib* -name $lib|
|
|
|
+ grep -q $lib;then :;else echo not;fi) found
|
|
|
+done
|
|
|
+unset lib</literal>-->
|
|
|
+EOF
|
|
|
+
|
|
|
+bash version-check.sh</userinput></screen>
|
|
|
+
|
|
|
+ <para>Also check for some library consistency:</para>
|
|
|
|
|
|
+<screen role="nodump"><userinput>cat > library-check.sh << "EOF"
|
|
|
+<literal>#!/bin/bash
|
|
|
for lib in lib{gmp,mpfr,mpc}.la; do
|
|
|
echo $lib: $(if find /usr/lib* -name $lib|
|
|
|
grep -q $lib;then :;else echo not;fi) found
|
|
@@ -203,7 +216,11 @@ done
|
|
|
unset lib</literal>
|
|
|
EOF
|
|
|
|
|
|
-bash version-check.sh</userinput></screen>
|
|
|
+bash library-check.sh</userinput></screen>
|
|
|
+
|
|
|
+<para>The files identified by this script should be all present
|
|
|
+or all absent, but not only one or two present.</para>
|
|
|
+
|
|
|
|
|
|
</sect2>
|
|
|
</sect1>
|