From 173b4114c4dd950acce43c1d5546e40fc72ada33 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 21 May 2010 16:17:39 +0000 Subject: [PATCH] force perl 5.8.2 library path on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/mysqlsetup | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/sbin/mysqlsetup b/xCAT-server/sbin/mysqlsetup index 21f61ebc5..99327abba 100755 --- a/xCAT-server/sbin/mysqlsetup +++ b/xCAT-server/sbin/mysqlsetup @@ -27,6 +27,15 @@ BEGIN $::XCATDIR = $ENV{'XCATDIR'} ? $ENV{'XCATDIR'} : '/etc/xcat'; } +# if AIX - make sure we include perl 5.8.2 in INC path. +# Needed to find perl dependencies shipped in deps tarball. +if ($^O =~ /^aix/i) { + use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi"; + use lib "/usr/opt/perl5/lib/5.8.2"; + use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi"; + use lib "/usr/opt/perl5/lib/site_perl/5.8.2"; +} + use lib "$::XCATROOT/lib/perl"; use DBI; use xCAT::Utils;