can't uninstall TTU on Linux via uninstall_ttu.sh

Tools & Utilities
Enthusiast

can't uninstall TTU on Linux via uninstall_ttu.sh

Hi,

  I got stuck with a compatibility issue with my Red Hat Linux, not able to run popular uninstall_ttu.sh script. It's happening with all version of TTU 15.10.

 

server info is below.

===================

Linux version 2.6.32-504.12.2.el6.x86_64 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-9) (GCC) ) #1 SMP Sun Feb 1 12:14:02 EST 2015

#################################################################################################

script goes in loop, need to be killed by ^C

===================================

$ bash ./uninstall_ttu.sh
Teradata Tools and Utilities UNIX Uninstall v.15.10.00.02
Copyright 2009-2015. Teradata Corporation. All Rights Reserved.
Package Removal Type: rpm
./uninstall_ttu.sh: line 463: set: -A: invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
.rpm: no arguments given for query
.rpm: no arguments given for query
.rpm: no arguments given for query
.rpm: no arguments given for query
.rpm: no arguments given for query
.rpm: no arguments given for query
.rpm: no arguments given for query

.

>

>
>

 

 

4 REPLIES
Junior Supporter

Re: can't uninstall TTU on Linux via uninstall_ttu.sh

Hi.

   >>"$ bash ./uninstall_ttu.sh"

uninstall_ttu.sh is a ksh (korn shell) script, not a bash shell script.

 

You should execute the script with

$./uninstall_ttu.sh

 

HTH.

Cheers.

Carlos.

 

Enthusiast

Re: can't uninstall TTU on Linux via uninstall_ttu.sh

Hi CarlosAL,

   my ETL server is Linux. it has only bash to work upon. does it mean, TTU installs aren't compatible to Linux OS ?

 

Regards

Junior Supporter

Re: can't uninstall TTU on Linux via uninstall_ttu.sh

Hi.

 

ksh should be in your Linux. Try

$ls /bin/ksh

 

or search the filesystem for it.

 

The fact that you use bash as default shell does not mean that ksh shell scripts "aren't compatible with Linux".

 

Cheers.

Carlos.

Enthusiast

Re: can't uninstall TTU on Linux via uninstall_ttu.sh

Ok, Thanks CarlosAL.

 

/bin/ksh doesn't come pre-loaded on a Linux box. I added the ksh package via yum install.

I found uninstall_ttu.sh working now.

 

As it turns out, the ksh shell interpreter is a pre-requisite for TTU installs. I'll take a note.

Thanks for your help.

 

Regards