Sunday, December 1, 2019

Telegram Group Linux4Scratch (linux from scratch build) or L4S

Version-check.sh  file slightly modified from Linux from Scratch linuxfromscratch.org

#!/bin/bash
# Simple script to list version numbers of critical development tools
# To see whether your host system has all the appropriate versions,
#  and the ability to compile programs, run the following:
export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
MYSH=$(readlink -f /bin/sh)
echo "/bin/sh -> $MYSH"
echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
unset MYSH
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -h /usr/bin/yacc ]; then
echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
elif [ -x /usr/bin/yacc ]; then
echo yacc is `/usr/bin/yacc --version | head -n1`
else
echo "yacc not found"
fi
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
if [ -h /usr/bin/awk ]; then
echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
elif [ -x /usr/bin/awk ]; then
echo awk is `/usr/bin/awk --version | head -n1`
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
cat /proc/version
m4 --version | head -n1
make --version | head -n1
patch --version | head -n1
echo Perl `perl -V:version`
python3 --version
sed --version | head -n1
tar --version | head -n1
makeinfo --version | head -n1 # texinfo version
xz --version | head -n1
echo 'int 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
echo  "Linux kernel version running on your computer system"
uname -a

Use in a terminal window with this line, replacing [mydistro_name_me] manjaro18_Fred like this  "version-check.results_manjaro18_Fred"
bash version-check.sh > version-check.results.[mydistro_name]

version-check.results_Manjaro18_Fred from  Telegram Group Linux4Scratch files

bash, version 5.0.11(1)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils 2.32) 1.16
bison (GNU Bison) 3.4
yacc is bison (GNU Bison) 3.4
bzip2,  Version 1.0.8, 13-Jul-2019.
Coreutils:  8.31
diff (GNU diffutils) 3.7
find (GNU findutils) 4.7.0
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 9.2.0
g++ (GCC) 9.2.0
(GNU libc) 2.30
grep (GNU grep) 3.3
gzip 1.10
Linux version 4.19.79-1-MANJARO (builduser@lancaster) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Fri Oct 11 19:57:09 UTC 2019
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.6
Perl version='5.30.0';
Python 3.7.4
sed (GNU sed) 4.7
tar (GNU tar) 1.32
texi2any (GNU texinfo) 6.6
xz (XZ Utils) 5.2.4
g++ compilation OK
Linux kernel version running on your computer system
Linux kliktel-pc 4.19.79-1-MANJARO #1 SMP PREEMPT Fri Oct 11 19:57:09 UTC 2019 x86_64 GNU/Linux

What does you results file look like?  When I ran on Peppermint 10, software tool 'Bison' was missing.   I am getting ready to run this from BionicPup8 in a Gnome-Boxes virtual machine

version-check.results_BionicPup8__Fred

https://pastebin.com/F1tgqXMr 
 Good for one year from December , 2019  Fred says



Add the Devx_  file to standard puppylinux.  Use the Menu-->System-->Quick_SFS_load application to install the development tools.
Seem that we are still missing 'yacc' tool (yet another compiler compiler).

version-check.results_BionicPup8__Devx_Fred

https://pastebin.com/H8xiAyzy

No comments:

Post a Comment