RVM- Ruby Version Manager

Exploring RVM

I am trying get a feel for it …following the documentation …probabaly upate later.I was basically doing everything by gem..lack of awareness..heck…

This was provided by my colleague Brian ..thanks mate…

Version check for important software build tool

Here is a small script , which will scan the system for important development tools for their version check.Simple and mundane.


#!/bin/bash
export LC_ALL=C

# Simple script to list version numbers of critical development tools

bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> `readlink -f /bin/sh`"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -e /usr/bin/yacc ];
then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
else echo "yacc not found"; fi
bzip2 --version 2>&1 `readlink -f /usr/bin/awk`";
else echo "awk not found"; fi
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d"," -f1
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`
sed --version | head -n1
tar --version | head -n1
echo "Texinfo: `makeinfo --version | head -n1`"
echo 'main(){}' > dummy.c && gcc -o dummy dummy.c
if [ -x dummy ]; then echo "Compilation OK";
else echo "Compilation failed"; fi
rm -f dummy.c dummy

Running this script on my laptop shown the below output( I am on Slackware 13.37):


bhaskar@Slackware_12:18:38_Thu Aug 23:/lvm/Adm_scripts> sudo ./version-check.sh
bash, version 4.1.10(2)-release
/bin/sh -> /bin/bash
Binutils: (Linux/GNU Binutils) 2.21.51.0.6.20110118
bison (GNU Bison) 2.4.3
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.15
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk-3.1.8
gcc (GCC) 4.5.2
GNU C Library stable release version 2.13
grep (GNU grep) 2.7
gzip 1.4
Linux version 2.6.37.6-smp (root@midas) (gcc version 4.5.2 (GCC) ) #2 SMP Sat Apr 9 23:39:07 CDT 2011
m4 (GNU M4) 1.4.16
GNU Make 3.82
patch 2.6.1
Perl version='5.12.3';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK

You can customize it to include more.Hope this will help.

Cheers!
Bhaskar