2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 10:29:53 +00:00
xcat-dep/AIX/perl-DBD-mysql/7.1/instmysql
lissav d474b1284e new script supports two version of perl-DBD
Former-commit-id: 76fe225e059a7e4bab48af925e1550c4fdc086c8
2010-07-27 15:38:21 +00:00

19 lines
635 B
Bash
Executable File

#!/bin/ksh
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
# xCAT on AIX - prerequisite install script
cd `dirname $0`
rpm -Uvh xcat-mysql-5.1-37.aix5.3.ppc.rpm
PERLVER=`perl -v|grep 'This is perl'|cut -d' ' -f 4`
if [ "$PERLVER" == "v5.8.2" ]; then
rpm -Uvh perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm
elif [ "$PERLVER" == "v5.8.8" ]; then
rpm -Uvh perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm
elif [ "$PERLVER" == "v5.10.1" ]; then
rpm -Uvh perl-DBD-mysql-4.007-2.aix7.1.ppc.rpm
OSVER='7.1'
else
echo "Error: the perl version of '$PERLVER' is not one that instoss understands. Exiting..."
exit 2
fi