Skip to content

Commit 694660f

Browse files
committed
Added host system checking files
0 parents  commit 694660f

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

hostcheck/library-check.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
for lib in lib{gmp,mpfr,mpc}.la; do
3+
echo $lib: $(if find /usr/lib* -name $lib|
4+
grep -q $lib;then :;else echo not;fi) found
5+
done
6+
unset lib
7+

hostcheck/version-check.sh

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
# Simple script to list version numbers of critical development tools
3+
export LC_ALL=C
4+
bash --version | head -n1 | cut -d" " -f2-4
5+
MYSH=$(readlink -f /bin/sh)
6+
echo "/bin/sh -> $MYSH"
7+
echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
8+
unset MYSH
9+
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
10+
bison --version | head -n1
11+
if [ -h /usr/bin/yacc ]; then
12+
echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
13+
elif [ -x /usr/bin/yacc ]; then
14+
echo yacc is `/usr/bin/yacc --version | head -n1`
15+
else
16+
echo "yacc not found"
17+
fi
18+
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
19+
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
20+
diff --version | head -n1
21+
find --version | head -n1
22+
gawk --version | head -n1
23+
if [ -h /usr/bin/awk ]; then
24+
echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
25+
elif [ -x /usr/bin/awk ]; then
26+
echo awk is `/usr/bin/awk --version | head -n1`
27+
else
28+
echo "awk not found"
29+
fi
30+
gcc --version | head -n1
31+
g++ --version | head -n1
32+
ldd --version | head -n1 | cut -d" " -f2-
33+
# glibc version
34+
grep --version | head -n1
35+
gzip --version | head -n1
36+
cat /proc/version
37+
m4 --version | head -n1
38+
make --version | head -n1
39+
patch --version | head -n1
40+
echo Perl `perl -V:version`
41+
sed --version | head -n1
42+
tar --version | head -n1
43+
makeinfo --version | head -n1
44+
xz --version | head -n1
45+
echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
46+
if [ -x dummy ]
47+
then echo "g++ compilation OK";
48+
else echo "g++ compilation failed"; fi
49+
rm -f dummy.c dummy
50+

0 commit comments

Comments
 (0)